aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/windows/windowsFile.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-08-16 09:52:17 +0000
committerVincent Richard <[email protected]>2013-08-16 09:52:17 +0000
commita64a4b5dbc07952bfce1c9aa9c41e578ab1e4885 (patch)
tree7ccc586159324e457a599eb1c6ca0fbf8642580f /src/platforms/windows/windowsFile.cpp
parentFixed missing space in command. (diff)
downloadvmime-a64a4b5dbc07952bfce1c9aa9c41e578ab1e4885.tar.gz
vmime-a64a4b5dbc07952bfce1c9aa9c41e578ab1e4885.zip
Open the file in shared mode not to lock file.
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,