Jörg Höhle : mcicda: Prevent crash when closing while playing.
Alexandre Julliard
julliard at winehq.org
Mon Mar 15 12:19:39 CDT 2010
Module: wine
Branch: master
Commit: 3f529a6e7068b610b7ab4456eddc835449dc894c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f529a6e7068b610b7ab4456eddc835449dc894c
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Wed Mar 10 20:52:46 2010 +0100
mcicda: Prevent crash when closing while playing.
---
dlls/mcicda/mcicda.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/mcicda/mcicda.c b/dlls/mcicda/mcicda.c
index 92c9435..5c99534 100644
--- a/dlls/mcicda/mcicda.c
+++ b/dlls/mcicda/mcicda.c
@@ -483,6 +483,8 @@ static DWORD MCICDA_Close(UINT wDevID, DWORD dwParam, LPMCI_GENERIC_PARMS lpParm
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
+ MCICDA_Stop(wDevID, MCI_WAIT, NULL);
+
if (--wmcda->nUseCount == 0) {
CloseHandle(wmcda->handle);
}
More information about the wine-cvs
mailing list