When opening the file we don't need MMIO_EXCLUSIVE
rights. MMIO_DENYWRITE should be sufficient.
This commit is contained in:
parent
fe2e7c5f3f
commit
f7f9508b13
|
@ -629,7 +629,7 @@ static DWORD MIDI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParm
|
|||
TRACE_(mcimidi)("MCI_OPEN_ELEMENT '%s' !\n", lpstrElementName);
|
||||
if (lpstrElementName && strlen(lpstrElementName) > 0) {
|
||||
wmm->hFile = mmioOpenA(lpstrElementName, NULL,
|
||||
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_EXCLUSIVE);
|
||||
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_DENYWRITE);
|
||||
if (wmm->hFile == 0) {
|
||||
WARN_(mcimidi)("Can't find file='%s' !\n", lpstrElementName);
|
||||
wmm->nUseCount--;
|
||||
|
|
|
@ -235,7 +235,7 @@ static DWORD WAVE_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_WAVE_OPEN_PARMSA l
|
|||
TRACE(mciwave, "MCI_OPEN_ELEMENT '%s' !\n", lpstrElementName);
|
||||
if (lpstrElementName && (strlen(lpstrElementName) > 0)) {
|
||||
wmw->hFile = mmioOpenA((LPSTR)lpstrElementName, NULL,
|
||||
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_EXCLUSIVE);
|
||||
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_DENYWRITE);
|
||||
if (wmw->hFile == 0) {
|
||||
WARN(mciwave, "can't find file='%s' !\n", lpstrElementName);
|
||||
dwRet = MCIERR_FILE_NOT_FOUND;
|
||||
|
|
Loading…
Reference in New Issue