Commit f7f9508b authored by Jukka Kangas's avatar Jukka Kangas Committed by Alexandre Julliard

When opening the file we don't need MMIO_EXCLUSIVE

rights. MMIO_DENYWRITE should be sufficient.
parent fe2e7c5f
...@@ -629,7 +629,7 @@ static DWORD MIDI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParm ...@@ -629,7 +629,7 @@ static DWORD MIDI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParm
TRACE_(mcimidi)("MCI_OPEN_ELEMENT '%s' !\n", lpstrElementName); TRACE_(mcimidi)("MCI_OPEN_ELEMENT '%s' !\n", lpstrElementName);
if (lpstrElementName && strlen(lpstrElementName) > 0) { if (lpstrElementName && strlen(lpstrElementName) > 0) {
wmm->hFile = mmioOpenA(lpstrElementName, NULL, wmm->hFile = mmioOpenA(lpstrElementName, NULL,
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_EXCLUSIVE); MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_DENYWRITE);
if (wmm->hFile == 0) { if (wmm->hFile == 0) {
WARN_(mcimidi)("Can't find file='%s' !\n", lpstrElementName); WARN_(mcimidi)("Can't find file='%s' !\n", lpstrElementName);
wmm->nUseCount--; wmm->nUseCount--;
......
...@@ -235,7 +235,7 @@ static DWORD WAVE_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_WAVE_OPEN_PARMSA l ...@@ -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); TRACE(mciwave, "MCI_OPEN_ELEMENT '%s' !\n", lpstrElementName);
if (lpstrElementName && (strlen(lpstrElementName) > 0)) { if (lpstrElementName && (strlen(lpstrElementName) > 0)) {
wmw->hFile = mmioOpenA((LPSTR)lpstrElementName, NULL, wmw->hFile = mmioOpenA((LPSTR)lpstrElementName, NULL,
MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_EXCLUSIVE); MMIO_ALLOCBUF | MMIO_READWRITE | MMIO_DENYWRITE);
if (wmw->hFile == 0) { if (wmw->hFile == 0) {
WARN(mciwave, "can't find file='%s' !\n", lpstrElementName); WARN(mciwave, "can't find file='%s' !\n", lpstrElementName);
dwRet = MCIERR_FILE_NOT_FOUND; dwRet = MCIERR_FILE_NOT_FOUND;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment