CreateStreamOnFile(): use flag FILE_SHARE_READ for opening OLE stream

files to enable file sharing.
This commit is contained in:
Martin Fuchs 2004-01-18 22:06:35 +00:00 committed by Alexandre Julliard
parent de810044a3
commit b35c27626f
1 changed files with 1 additions and 1 deletions

View File

@ -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;