msi/tests: Double null-terminate a REG_MULTI_SZ string.

This commit is contained in:
Hans Leidekker 2010-07-21 09:48:11 +02:00 committed by Alexandre Julliard
parent 3929369611
commit 409e2d7105
1 changed files with 2 additions and 1 deletions

View File

@ -8371,9 +8371,10 @@ static void test_MsiEnumPatchesEx_userunmanaged(LPCSTR usersid, LPCSTR expecteds
"Expected targetsid to be unchanged, got %s\n", targetsid);
ok(size == MAX_PATH, "Expected size to be unchanged, got %d\n", size);
patch_squashed[lstrlenA(patch_squashed) + 1] = 0;
res = RegSetValueExA(patches, "Patches", 0, REG_MULTI_SZ,
(const BYTE *)patch_squashed,
lstrlenA(patch_squashed) + 1);
lstrlenA(patch_squashed) + 2);
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
/* Patches value exists */