aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/windows/windowsFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/windows/windowsFile.cpp')
-rw-r--r--src/platforms/windows/windowsFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/windows/windowsFile.cpp b/src/platforms/windows/windowsFile.cpp
index 5b8015ae..a5a9089b 100644
--- a/src/platforms/windows/windowsFile.cpp
+++ b/src/platforms/windows/windowsFile.cpp
@@ -244,7 +244,7 @@ bool windowsFile::canRead() const
HANDLE hFile = CreateFile(
m_nativePath.c_str(),
GENERIC_READ,
- 0,
+ FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
@@ -276,7 +276,7 @@ windowsFile::length_type windowsFile::getLength()
HANDLE hFile = CreateFile(
m_nativePath.c_str(),
GENERIC_READ,
- 0,
+ FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,