Skip to content
Snippets Groups Projects
Commit 3f529a6e authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard
Browse files

mcicda: Prevent crash when closing while playing.

parent 22569e6d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment