msacm32.drv: Check for message type before comparing handles.

Fixes a valgrind warning.
This commit is contained in:
Maarten Lankhorst 2008-05-22 11:08:48 -07:00 committed by Alexandre Julliard
parent 6589d9ab95
commit 63699cf58c
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static void CALLBACK wodCallback(HWAVEOUT hWave, UINT uMsg, DWORD_PTR dwInstance
return;
}
if (hWave != wom->u.out.hInnerWave && uMsg != WOM_OPEN)
if (uMsg != WOM_OPEN && hWave != wom->u.out.hInnerWave)
ERR("Shouldn't happen (%p %p)\n", hWave, wom->u.out.hInnerWave);
switch (uMsg) {