mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug 54475 (problem with opening locked file)
This commit is contained in:
@ -1195,7 +1195,7 @@ namespace NSFile
|
||||
{
|
||||
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(_WIN64)
|
||||
FILE* pFile = NULL;
|
||||
if ( 0 != _wfopen_s( &pFile, strFileName.c_str(), L"rb"))
|
||||
if ( NULL == (pFile = _wfsopen( strFileName.c_str(), L"rb", _SH_DENYNO)))
|
||||
return false;
|
||||
#else
|
||||
BYTE* pUtf8 = NULL;
|
||||
|
||||
Reference in New Issue
Block a user