CreateStreamOnFile(): use flag FILE_SHARE_READ for opening OLE stream
files to enable file sharing.
This commit is contained in:
parent
de810044a3
commit
b35c27626f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue