Commit 82a404a0 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 55d90458
...@@ -375,8 +375,7 @@ static void wave_in_test_device(int device) ...@@ -375,8 +375,7 @@ static void wave_in_test_device(int device)
ok(rc==MMSYSERR_NOERROR,"waveInMessage(%s): failed to get interface " ok(rc==MMSYSERR_NOERROR,"waveInMessage(%s): failed to get interface "
"name: rc=%s\n",dev_name(device),wave_in_error(rc)); "name: rc=%s\n",dev_name(device),wave_in_error(rc));
ok(lstrlenW(nameW)+1==size/sizeof(WCHAR), ok(lstrlenW(nameW)+1==size/sizeof(WCHAR),
"got an incorrect size: %ld instead of %d\n", "got an incorrect size %ld\n", size);
size,(lstrlenW(nameW)+1)*sizeof(WCHAR));
if (rc==MMSYSERR_NOERROR) { if (rc==MMSYSERR_NOERROR) {
nameA = malloc(size/sizeof(WCHAR)); nameA = malloc(size/sizeof(WCHAR));
WideCharToMultiByte(CP_ACP, 0, nameW, size/sizeof(WCHAR), WideCharToMultiByte(CP_ACP, 0, nameW, size/sizeof(WCHAR),
......
...@@ -873,8 +873,7 @@ static void wave_out_test_device(int device) ...@@ -873,8 +873,7 @@ static void wave_out_test_device(int device)
(DWORD_PTR)nameW, size); (DWORD_PTR)nameW, size);
ok(rc==MMSYSERR_NOERROR,"waveOutMessage(%s): failed to get interface " ok(rc==MMSYSERR_NOERROR,"waveOutMessage(%s): failed to get interface "
"name, rc=%s\n",dev_name(device),wave_out_error(rc)); "name, rc=%s\n",dev_name(device),wave_out_error(rc));
ok(lstrlenW(nameW)+1==size/sizeof(WCHAR),"got an incorrect size: " ok(lstrlenW(nameW)+1==size/sizeof(WCHAR),"got an incorrect size %ld\n",size);
"%ld instead of %d\n",size,(lstrlenW(nameW)+1)*sizeof(WCHAR));
if (rc==MMSYSERR_NOERROR) { if (rc==MMSYSERR_NOERROR) {
nameA = malloc(size/sizeof(WCHAR)); nameA = malloc(size/sizeof(WCHAR));
WideCharToMultiByte(CP_ACP, 0, nameW, size/sizeof(WCHAR), nameA, WideCharToMultiByte(CP_ACP, 0, nameW, size/sizeof(WCHAR), nameA,
......
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