Fixed sharing mode when opening file.
This commit is contained in:
parent
54c766e110
commit
f3727fd2ad
@ -207,7 +207,7 @@ void windowsFile::createFile()
|
|||||||
HANDLE hFile = CreateFile(
|
HANDLE hFile = CreateFile(
|
||||||
m_nativePath.c_str(),
|
m_nativePath.c_str(),
|
||||||
GENERIC_WRITE,
|
GENERIC_WRITE,
|
||||||
0,
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
NULL,
|
NULL,
|
||||||
CREATE_ALWAYS,
|
CREATE_ALWAYS,
|
||||||
FILE_ATTRIBUTE_NORMAL,
|
FILE_ATTRIBUTE_NORMAL,
|
||||||
@ -260,7 +260,7 @@ bool windowsFile::canWrite() const
|
|||||||
HANDLE hFile = CreateFile(
|
HANDLE hFile = CreateFile(
|
||||||
m_nativePath.c_str(),
|
m_nativePath.c_str(),
|
||||||
GENERIC_WRITE,
|
GENERIC_WRITE,
|
||||||
0,
|
FILE_SHARE_WRITE,
|
||||||
NULL,
|
NULL,
|
||||||
OPEN_ALWAYS,
|
OPEN_ALWAYS,
|
||||||
FILE_ATTRIBUTE_NORMAL,
|
FILE_ATTRIBUTE_NORMAL,
|
||||||
@ -435,7 +435,7 @@ ref <vmime::utility::inputStream> windowsFileReader::getInputStream()
|
|||||||
HANDLE hFile = CreateFile(
|
HANDLE hFile = CreateFile(
|
||||||
m_nativePath.c_str(),
|
m_nativePath.c_str(),
|
||||||
GENERIC_READ,
|
GENERIC_READ,
|
||||||
0,
|
FILE_SHARE_READ,
|
||||||
NULL,
|
NULL,
|
||||||
OPEN_EXISTING,
|
OPEN_EXISTING,
|
||||||
0,
|
0,
|
||||||
@ -510,7 +510,7 @@ ref <vmime::utility::outputStream> windowsFileWriter::getOutputStream()
|
|||||||
HANDLE hFile = CreateFile(
|
HANDLE hFile = CreateFile(
|
||||||
m_nativePath.c_str(),
|
m_nativePath.c_str(),
|
||||||
GENERIC_WRITE,
|
GENERIC_WRITE,
|
||||||
0,
|
FILE_SHARE_WRITE,
|
||||||
NULL,
|
NULL,
|
||||||
CREATE_ALWAYS,
|
CREATE_ALWAYS,
|
||||||
FILE_ATTRIBUTE_NORMAL,
|
FILE_ATTRIBUTE_NORMAL,
|
||||||
|
Loading…
Reference in New Issue
Block a user