Commit b35c2762 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

CreateStreamOnFile(): use flag FILE_SHARE_READ for opening OLE stream

files to enable file sharing.
parent de810044
......@@ -107,7 +107,7 @@ HRESULT CreateStreamOnFile (LPCWSTR pszFilename, DWORD grfMode, IStream ** ppstm
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;
......
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