mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
wtsapi32/tests: Avoid sizeof() in traces.
This commit is contained in:
parent
9974960f0c
commit
4aac5089f3
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue