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

Alexandre Julliard julliard at winehq.org
Wed Jul 21 10:54:59 CDT 2010


Module: wine
Branch: master
Commit: 409e2d7105b3f9f7b0813018b73cdfee9b739cc8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=409e2d7105b3f9f7b0813018b73cdfee9b739cc8

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Jul 21 09:48:11 2010 +0200

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

---

 dlls/msi/tests/msi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c
index b377320..d31159d 100644
--- a/dlls/msi/tests/msi.c
+++ b/dlls/msi/tests/msi.c
@@ -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 */




More information about the wine-cvs mailing list