Skip to content

Commit

Permalink
Allow files to be opened for reading multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Aug 17, 2013
1 parent cb8e3f7 commit f6d84d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/env_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ BOOL Win32RandomAccessFile::_Init( LPCWSTR path )
{
BOOL bRet = FALSE;
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);
if(!_hFile || _hFile == INVALID_HANDLE_VALUE )
_hFile = NULL;
Expand Down

0 comments on commit f6d84d1

Please sign in to comment.