Shell32 patch 2

Martin Fuchs martin-fuchs at gmx.net
Sat Jan 17 05:05:21 CST 2004


Changelog:
- CreateStreamOnFile(): use flag FILE_SHARE_READ for opening OLE stream files to enable file sharing


Index: memorystream.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/memorystream.c,v
retrieving revision 1.12
diff -u -p -d -r1.12 memorystream.c
--- memorystream.c      8 Sep 2003 19:38:46 -0000       1.12
+++ memorystream.c      17 Jan 2004 11:04:24 -0000
@@ -107,7 +107,7 @@ HRESULT CreateStreamOnFile (LPCWSTR pszF

        TRACE("Opening %s\n", debugstr_w(pszFilename) );

-       handle = CreateFileW( pszFilename, access, 0, NULL, creat, 0, NULL );
+       handle = CreateFileW( pszFilename, access, FILE_SHARE_READ, NULL, creat, 0, NULL );
        if( handle == INVALID_HANDLE_VALUE )
                return E_FAIL;




More information about the wine-patches mailing list