diff options
| author | Vincent Richard <[email protected]> | 2013-08-16 09:52:17 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-08-16 09:52:17 +0000 |
| commit | a64a4b5dbc07952bfce1c9aa9c41e578ab1e4885 (patch) | |
| tree | 7ccc586159324e457a599eb1c6ca0fbf8642580f /src | |
| parent | Fixed missing space in command. (diff) | |
| download | vmime-a64a4b5dbc07952bfce1c9aa9c41e578ab1e4885.tar.gz vmime-a64a4b5dbc07952bfce1c9aa9c41e578ab1e4885.zip | |
Open the file in shared mode not to lock file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/windows/windowsFile.cpp | 4 |
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, |
