winmm: pass the right message to hwnd from mixer callback

Maarten Lankhorst m.b.lankhorst at gmail.com
Fri Apr 20 13:19:05 CDT 2007


Fixes a bug that doesn't even exist yet!
-------------- next part --------------
>From 5a14d47db535b03db9e312b7d5d1e6306e3e76b2 Mon Sep 17 00:00:00 2001
From: maarten lankhorst <m.b.lankhorst at gmail.com>
Date: Fri, 20 Apr 2007 20:15:11 +0200
Subject: [PATCH] winmm: pass the right message in mixer callback

---
 dlls/winmm/winmm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c
index f17ad7c..0881f16 100644
--- a/dlls/winmm/winmm.c
+++ b/dlls/winmm/winmm.c
@@ -313,7 +313,7 @@ static void CALLBACK MIXER_WCallback(HMIXEROBJ hmx, UINT uMsg, DWORD_PTR dwInsta
     if (!dwInstance)
         return;
 
-    PostMessageW(hWnd, MM_MIXM_CONTROL_CHANGE, (WPARAM)hmx, (LPARAM)dwParam);
+    PostMessageW(hWnd, uMsg, (WPARAM)hmx, (LPARAM)dwParam);
 }
 
 UINT  MIXER_Open(LPHMIXER lphMix, UINT uDeviceID, DWORD_PTR dwCallback,
-- 
1.4.4.2



More information about the wine-patches mailing list