Bruno Jesus : winmm: Dispatch MCI_BREAK to the driver.

Alexandre Julliard julliard at winehq.org
Mon Mar 6 15:25:07 CST 2017


Module: wine
Branch: master
Commit: 0aaade2cecdfaa14df1ca9d397031cb0a015d77c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0aaade2cecdfaa14df1ca9d397031cb0a015d77c

Author: Bruno Jesus <bjesus at codeweavers.com>
Date:   Mon Mar  6 01:24:28 2017 -0300

winmm: Dispatch MCI_BREAK to the driver.

Signed-off-by: Bruno Jesus <bjesus at codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winmm/mci.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index f772388..56a537d 100644
--- a/dlls/winmm/mci.c
+++ b/dlls/winmm/mci.c
@@ -2063,13 +2063,18 @@ static	DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSW lpParm
  */
 static	DWORD MCI_Break(UINT wDevID, DWORD dwFlags, LPMCI_BREAK_PARMS lpParms)
 {
+    DWORD dwRet;
+
     if (lpParms == NULL)
         return MCIERR_NULL_PARAMETER_BLOCK;
-    FIXME("(%04x) vkey %04X stub\n", dwFlags, lpParms->nVirtKey);
 
-    if (dwFlags & MCI_NOTIFY)
+    TRACE("(%08x, %08X, vkey %04X, hwnd %p)\n", wDevID, dwFlags,
+          lpParms->nVirtKey, lpParms->hwndBreak);
+
+    dwRet = MCI_SendCommandFrom32(wDevID, MCI_BREAK, dwFlags, (DWORD_PTR)lpParms);
+    if (!dwRet && (dwFlags & MCI_NOTIFY))
         mciDriverNotify((HWND)lpParms->dwCallback, wDevID, MCI_NOTIFY_SUCCESSFUL);
-    return MMSYSERR_NOERROR;
+    return dwRet;
 }
 
 /**************************************************************************




More information about the wine-cvs mailing list