Commit 2a5cf54f authored by Alexandre Julliard's avatar Alexandre Julliard

msi/tests: Avoid sizeof in traces.

parent 7b2f7ed3
......@@ -7940,7 +7940,7 @@ static void test_MsiEnumPatchesEx(void)
ok(context == MSIINSTALLCONTEXT_USERMANAGED,
"Expected MSIINSTALLCONTEXT_USERMANAGED, got %d\n", context);
ok(size == lstrlenA(usersid) * sizeof(WCHAR),
"Expected %d, got %d\n", lstrlenA(usersid) * sizeof(WCHAR), size);
"Got %d\n", size);
/* pcchTargetUserSid is exactly the length of szTargetUserSid */
lstrcpyA(patchcode, "apple");
......@@ -7961,7 +7961,7 @@ static void test_MsiEnumPatchesEx(void)
ok(!strncmp(targetsid, usersid, lstrlenA(usersid) - 1),
"Expected \"%s\", got \"%s\"\n", usersid, targetsid);
ok(size == lstrlenA(usersid) * sizeof(WCHAR),
"Expected %d, got %d\n", lstrlenA(usersid) * sizeof(WCHAR), size);
"Got %d\n", size);
/* pcchTargetUserSid has enough room for NULL terminator */
lstrcpyA(patchcode, "apple");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment