Commit 4aac5089 authored by Alexandre Julliard's avatar Alexandre Julliard

wtsapi32/tests: Avoid sizeof() in traces.

parent 9974960f
......@@ -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);
......
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