Open the file in shared mode not to lock file.
This commit is contained in:
parent
2f513ff532
commit
a64a4b5dbc
@ -244,7 +244,7 @@ bool windowsFile::canRead() const
|
|||||||
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,
|
||||||
FILE_ATTRIBUTE_NORMAL,
|
FILE_ATTRIBUTE_NORMAL,
|
||||||
@ -276,7 +276,7 @@ windowsFile::length_type windowsFile::getLength()
|
|||||||
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,
|
||||||
FILE_ATTRIBUTE_NORMAL,
|
FILE_ATTRIBUTE_NORMAL,
|
||||||
|
Loading…
Reference in New Issue
Block a user