mciqtz32: Fix open/close omissions.
This commit is contained in:
parent
590cc1ad55
commit
c4faae9412
|
@ -105,6 +105,7 @@ static DWORD MCIQTZ_drvClose(DWORD dwDevID)
|
||||||
/* finish all outstanding things */
|
/* finish all outstanding things */
|
||||||
MCIQTZ_mciClose(dwDevID, MCI_WAIT, NULL);
|
MCIQTZ_mciClose(dwDevID, MCI_WAIT, NULL);
|
||||||
|
|
||||||
|
mciSetDriverData(dwDevID, 0);
|
||||||
HeapFree(GetProcessHeap(), 0, wma);
|
HeapFree(GetProcessHeap(), 0, wma);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -166,7 +167,7 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!((dwFlags & MCI_OPEN_ELEMENT) && (dwFlags & MCI_OPEN_ELEMENT))) {
|
if (!(dwFlags & MCI_OPEN_ELEMENT) || (dwFlags & MCI_OPEN_ELEMENT_ID)) {
|
||||||
TRACE("Wrong dwFlags %x\n", dwFlags);
|
TRACE("Wrong dwFlags %x\n", dwFlags);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue