oleaut32: Fix sharing options in TLB_ReadTypeLib.
Spotted by Donna Whisnant and Kevin Puetz. Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
741f8ae24e
commit
62ea59774b
|
@ -3329,7 +3329,7 @@ static HRESULT TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath
|
|||
|
||||
if(file != pszFileName) heap_free(file);
|
||||
|
||||
h = CreateFileW(pszPath, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
h = CreateFileW(pszPath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(h != INVALID_HANDLE_VALUE){
|
||||
FILE_NAME_INFORMATION size_info;
|
||||
BOOL br;
|
||||
|
|
Loading…
Reference in New Issue