[1/8] atl100: Drop file attribute when opening an existing file and specify appropriate sharing mode.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Oct 28 03:28:02 CDT 2013
---
dlls/atl100/registrar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
1.8.4.1
More information about the wine-patches
mailing list