mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-24 22:04:30 +00:00
Allow files to be opened for reading multiple times
This commit is contained in:
parent
20d6f2013b
commit
551b367f19
@ -420,7 +420,7 @@ BOOL Win32RandomAccessFile::_Init( LPCWSTR path )
|
|||||||
{
|
{
|
||||||
BOOL bRet = FALSE;
|
BOOL bRet = FALSE;
|
||||||
if(!_hFile)
|
if(!_hFile)
|
||||||
_hFile = ::CreateFileW(path,GENERIC_READ,0,NULL,OPEN_EXISTING,
|
_hFile = ::CreateFileW(path,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,
|
||||||
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_RANDOM_ACCESS,NULL);
|
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_RANDOM_ACCESS,NULL);
|
||||||
if(!_hFile || _hFile == INVALID_HANDLE_VALUE )
|
if(!_hFile || _hFile == INVALID_HANDLE_VALUE )
|
||||||
_hFile = NULL;
|
_hFile = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user