Jörg Höhle : mciwave: Send notification after everything else.

Alexandre Julliard julliard at winehq.org
Mon Oct 26 10:08:37 CDT 2009


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

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Sat Oct 17 16:41:10 2009 +0200

mciwave: Send notification after everything else.

---

 dlls/mciwave/mciwave.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c
index de78287..5270f25 100644
--- a/dlls/mciwave/mciwave.c
+++ b/dlls/mciwave/mciwave.c
@@ -884,14 +884,14 @@ cleanUp:
     }
     CloseHandle(wmw->hEvent);
 
+    wmw->dwStatus = MCI_MODE_STOP;
+
     if (lpParms && (dwFlags & MCI_NOTIFY)) {
 	mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
 			wmw->openParms.wDeviceID,
 			dwRet ? MCI_NOTIFY_FAILURE : MCI_NOTIFY_SUCCESSFUL);
     }
 
-    wmw->dwStatus = MCI_MODE_STOP;
-
     return dwRet;
 }
 
@@ -1108,14 +1108,14 @@ cleanUp:
     }
     CloseHandle(wmw->hEvent);
 
+    wmw->dwStatus = MCI_MODE_STOP;
+
     if (lpParms && (dwFlags & MCI_NOTIFY)) {
 	mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
 			wmw->openParms.wDeviceID,
 			dwRet ? MCI_NOTIFY_FAILURE : MCI_NOTIFY_SUCCESSFUL);
     }
 
-    wmw->dwStatus = MCI_MODE_STOP;
-
     return dwRet;
 
 }




More information about the wine-cvs mailing list