summaryrefslogtreecommitdiff
path: root/lib/win32
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-09-03 23:52:19 +0000
committerChris Wilson <chris+github@qwirx.com>2006-09-03 23:52:19 +0000
commitf2a0eaaedd261b287c11ca29661490c15ef57e72 (patch)
treeb6e522f2840aa9242f2095ac8dbc67ee167414fe /lib/win32
parenta1ccaaebe529e4c054812c13394b597974c58123 (diff)
(refs #3)
Request READ_CONTROL when standard open fails, rather than no flags
Diffstat (limited to 'lib/win32')
-rw-r--r--lib/win32/emu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp
index 0239724c..809cfa0e 100644
--- a/lib/win32/emu.cpp
+++ b/lib/win32/emu.cpp
@@ -716,7 +716,7 @@ HANDLE OpenFileByNameUtf8(const char* pFileName, DWORD flags)
// at least one process must have the file open -
// in this case someone else does.
handle = CreateFileW(pBuffer,
- 0,
+ READ_CONTROL,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,