Dmitry Timoshkov : atl100: Drop file attribute when opening an existing file and specify appropriate sharing mode .
Module: wine Branch: master Commit: 22cb898c9edcd9a0029eee8b6f03e410d956ed7a URL: http://source.winehq.org/git/wine.git/?a=commit;h=22cb898c9edcd9a0029eee8b6f... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Mon Oct 28 17:28:02 2013 +0900 atl100: Drop file attribute when opening an existing file and specify appropriate sharing mode. --- dlls/atl100/registrar.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/atl100/registrar.c b/dlls/atl100/registrar.c index 9cad32a..414ad2b 100644 --- a/dlls/atl100/registrar.c +++ b/dlls/atl100/registrar.c @@ -498,7 +498,7 @@ static HRESULT file_register(Registrar *This, LPCOLESTR fileName, BOOL do_regist LRESULT lres; HRESULT hres; - file = CreateFileW(fileName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY, NULL); + file = CreateFileW(fileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); if(file != INVALID_HANDLE_VALUE) { filelen = GetFileSize(file, NULL); regstra = HeapAlloc(GetProcessHeap(), 0, filelen);
participants (1)
-
Alexandre Julliard