1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

wtsapi32/tests: Avoid sizeof() in traces.

This commit is contained in:
Alexandre Julliard 2023-07-06 18:15:03 +02:00
parent 9974960f0c
commit 4aac5089f3

View File

@ -224,7 +224,7 @@ static void test_WTSQuerySessionInformation(void)
GetUserNameW(usernameW, &tempsize);
/* Windows Vista, 7 and 8 return uppercase username, while the rest return lowercase. */
ok(!wcsicmp(buf1, usernameW), "expected %s, got %s\n", wine_dbgstr_w(usernameW), wine_dbgstr_w(buf1));
ok(count == tempsize * sizeof(WCHAR), "expected %Iu, got %lu\n", tempsize * sizeof(WCHAR), count);
ok(count == tempsize * sizeof(WCHAR), "got %lu\n", count);
WTSFreeMemory(buf1);
count = 0;
@ -237,7 +237,7 @@ static void test_WTSQuerySessionInformation(void)
GetComputerNameW(computernameW, &tempsize);
/* Windows Vista, 7 and 8 return uppercase computername, while the rest return lowercase. */
ok(!wcsicmp(buf1, computernameW), "expected %s, got %s\n", wine_dbgstr_w(computernameW), wine_dbgstr_w(buf1));
ok(count == (tempsize + 1) * sizeof(WCHAR), "expected %Iu, got %lu\n", (tempsize + 1) * sizeof(WCHAR), count);
ok(count == (tempsize + 1) * sizeof(WCHAR), "got %lu\n", count);
WTSFreeMemory(buf1);
SetLastError(0xdeadbeef);