hex_sha1_file beter bestand tegen locked files
svn path=/Slnkdwf/trunk/; revision=52145
This commit is contained in:
@@ -302,7 +302,7 @@ bool HashFile(const TCHAR* tszFileName, std::string &result)
|
||||
if (tszFileName == NULL) return false;
|
||||
|
||||
FILE* fpIn;
|
||||
fopen_s(&fpIn, tszFileName, _T("rb"));
|
||||
fpIn = _fsopen(tszFileName, _T("rb"), _SH_DENYNO);
|
||||
if (fpIn == NULL) return false;
|
||||
|
||||
UINT_8* pbData = new UINT_8[SHA1_MAX_FILE_BUFFER];
|
||||
|
||||
Reference in New Issue
Block a user