diff options
-rw-r--r-- | win32/mingw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 75e6c3f24..5cd7e74db 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -445,7 +445,7 @@ static int has_exec_format(const char *name) | |||
445 | 445 | ||
446 | /* Open file and try to avoid updating access time */ | 446 | /* Open file and try to avoid updating access time */ |
447 | fh = CreateFileA(name, GENERIC_READ | FILE_WRITE_ATTRIBUTES, | 447 | fh = CreateFileA(name, GENERIC_READ | FILE_WRITE_ATTRIBUTES, |
448 | 0, NULL, OPEN_EXISTING, 0, NULL); | 448 | FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); |
449 | if (fh != INVALID_HANDLE_VALUE) { | 449 | if (fh != INVALID_HANDLE_VALUE) { |
450 | FILETIME last_access = { 0xffffffff, 0xffffffff }; | 450 | FILETIME last_access = { 0xffffffff, 0xffffffff }; |
451 | 451 | ||