msacm32.drv: Don't access uninitialized memory.
authorKen Thomases <ken@codeweavers.com>
Wed, 21 Oct 2009 15:05:15 +0000 (10:05 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 21 Oct 2009 17:45:30 +0000 (19:45 +0200)
dlls/msacm32.drv/wavemap.c

index 556b0c075349ba6d45c48aef124fa0afad196731..1faf7d2e3d08a13c946e3aa033e39b07d95a17f0 100644 (file)
@@ -673,7 +673,7 @@ static void CALLBACK widCallback(HWAVEIN hWave, UINT uMsg, DWORD_PTR dwInstance,
        return;
     }
 
-    if (hWave != wim->u.in.hInnerWave && uMsg != WIM_OPEN)
+    if (uMsg != WIM_OPEN && hWave != wim->u.in.hInnerWave)
        ERR("Shouldn't happen (%p %p)\n", hWave, wim->u.in.hInnerWave);
 
     switch (uMsg) {