From 82a404a077c190c4a1a072420c8142778ccc3280 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 13 Jun 2006 14:04:07 +0200 Subject: [PATCH] winmm/tests: Don't use sizeof in ok() to avoid printf format warnings. --- dlls/winmm/tests/capture.c | 3 +-- dlls/winmm/tests/wave.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c index e3d3044baab..c0e18d09a67 100644 --- a/dlls/winmm/tests/capture.c +++ b/dlls/winmm/tests/capture.c @@ -375,8 +375,7 @@ static void wave_in_test_device(int device) ok(rc==MMSYSERR_NOERROR,"waveInMessage(%s): failed to get interface " "name: rc=%s\n",dev_name(device),wave_in_error(rc)); ok(lstrlenW(nameW)+1==size/sizeof(WCHAR), - "got an incorrect size: %ld instead of %d\n", - size,(lstrlenW(nameW)+1)*sizeof(WCHAR)); + "got an incorrect size %ld\n", size); if (rc==MMSYSERR_NOERROR) { nameA = malloc(size/sizeof(WCHAR)); WideCharToMultiByte(CP_ACP, 0, nameW, size/sizeof(WCHAR), diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 3019472a4f6..3c447d2e490 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -873,8 +873,7 @@ static void wave_out_test_device(int device) (DWORD_PTR)nameW, size); ok(rc==MMSYSERR_NOERROR,"waveOutMessage(%s): failed to get interface " "name, rc=%s\n",dev_name(device),wave_out_error(rc)); - ok(lstrlenW(nameW)+1==size/sizeof(WCHAR),"got an incorrect size: " - "%ld instead of %d\n",size,(lstrlenW(nameW)+1)*sizeof(WCHAR)); + ok(lstrlenW(nameW)+1==size/sizeof(WCHAR),"got an incorrect size %ld\n",size); if (rc==MMSYSERR_NOERROR) { nameA = malloc(size/sizeof(WCHAR)); WideCharToMultiByte(CP_ACP, 0, nameW, size/sizeof(WCHAR), nameA,