mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:30:58 +00:00
mcicda: Prevent crash when closing while playing.
This commit is contained in:
parent
22569e6dce
commit
3f529a6e70
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue