winmm: The default I/O procedure should return MMIOERR_FILENOTFOUND if the openable file is not found.

This commit is contained in:
Alexander Puzankov 2010-11-29 22:22:19 +03:00 committed by Alexandre Julliard
parent 304c455b2b
commit 507db530b2

View File

@ -79,7 +79,7 @@ static LRESULT CALLBACK mmioDosIOProc(LPMMIOINFO lpmmioinfo, UINT uMessage,
lpmmioinfo->adwInfo[0] = OpenFile(szFileName, &ofs, lpmmioinfo->dwFlags & 0xFFFF);
}
if (lpmmioinfo->adwInfo[0] == HFILE_ERROR)
ret = MMIOERR_CANNOTOPEN;
ret = MMIOERR_FILENOTFOUND;
}
break;