Module: wine Branch: master Commit: 63699cf58c617de4f555fd15d45bf1062eef2e78 URL: http://source.winehq.org/git/wine.git/?a=commit;h=63699cf58c617de4f555fd15d4...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Thu May 22 11:08:48 2008 -0700
msacm32.drv: Check for message type before comparing handles.
Fixes a valgrind warning.
---
dlls/msacm32.drv/wavemap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msacm32.drv/wavemap.c b/dlls/msacm32.drv/wavemap.c index 9e58a3d..96f4626 100644 --- a/dlls/msacm32.drv/wavemap.c +++ b/dlls/msacm32.drv/wavemap.c @@ -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) {