When opening the file we don't need MMIO_EXCLUSIVE

rights. MMIO_DENYWRITE should be sufficient.
This commit is contained in:
Jukka Kangas 1999-05-17 15:37:47 +00:00 committed by Alexandre Julliard
parent fe2e7c5f3f
commit f7f9508b13
2 changed files with 2 additions and 2 deletions

View File

@ -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--;

View File

@ -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;