hex_sha1_file beter bestand tegen locked files

svn path=/Slnkdwf/trunk/; revision=52145
This commit is contained in:
Jos Groot Lipman
2021-06-30 07:00:16 +00:00
parent 1b416570e8
commit d537785eaa

View File

@@ -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];