Make it possible to open read-only AVI files for a playback

Dmitry Timoshkov dmitry at baikal.ru
Wed Jul 14 09:05:59 CDT 2004


Hello,

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Make it possible to open read-only AVI files for a playback.

--- cvs/hq/wine/dlls/winmm/mciavi/mciavi.c	2004-03-20 14:28:22.000000000 +0800
+++ wine/dlls/winmm/mciavi/mciavi.c	2004-07-14 19:18:14.000000000 +0900
@@ -324,7 +324,7 @@ static	DWORD	MCIAVI_mciOpen(UINT wDevID,
                 strcpy(wma->lpFileName, lpOpenParms->lpstrElementName);
 
 		wma->hFile = mmioOpenA(lpOpenParms->lpstrElementName, NULL,
-				       MMIO_ALLOCBUF | MMIO_DENYWRITE | MMIO_READWRITE);
+				       MMIO_ALLOCBUF | MMIO_DENYWRITE | MMIO_READ);
 
 		if (wma->hFile == 0) {
 		    WARN("can't find file='%s' !\n", lpOpenParms->lpstrElementName);






More information about the wine-patches mailing list