winmm/tests: Don't use sizeof in ok() to avoid printf format warnings.

This commit is contained in:
Alexandre Julliard 2006-06-13 14:04:07 +02:00
parent 55d9045804
commit 82a404a077
2 changed files with 2 additions and 4 deletions

View File

@ -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),

View File

@ -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,