From 4aac5089f3c423fe7afb8e4ef152b36bf55505f4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 6 Jul 2023 18:15:03 +0200 Subject: [PATCH] wtsapi32/tests: Avoid sizeof() in traces. --- dlls/wtsapi32/tests/wtsapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wtsapi32/tests/wtsapi.c b/dlls/wtsapi32/tests/wtsapi.c index 396a3f4b1e7..6e8de7b232d 100644 --- a/dlls/wtsapi32/tests/wtsapi.c +++ b/dlls/wtsapi32/tests/wtsapi.c @@ -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);