diff --git a/src/osd/windows/winfile.c b/src/osd/windows/winfile.c index 03f525e3274..e5b919d9570 100644 --- a/src/osd/windows/winfile.c +++ b/src/osd/windows/winfile.c @@ -99,7 +99,7 @@ file_error osd_open(const char *path, UINT32 openflags, osd_file **file, UINT64 { disposition = (!is_path_to_physical_drive(path) && (openflags & OPEN_FLAG_CREATE)) ? CREATE_ALWAYS : OPEN_EXISTING; access = (openflags & OPEN_FLAG_READ) ? (GENERIC_READ | GENERIC_WRITE) : GENERIC_WRITE; - sharemode = 0; + sharemode = FILE_SHARE_READ; } else if (openflags & OPEN_FLAG_READ) {