diff --git a/src/common/utility/cmdlib.cpp b/src/common/utility/cmdlib.cpp index c162dd0d33..72485011d0 100644 --- a/src/common/utility/cmdlib.cpp +++ b/src/common/utility/cmdlib.cpp @@ -178,7 +178,8 @@ bool FileReadable(const char *filename) #ifndef _WIN32 return access (filename, R_OK) == 0; #else - return _access (filename, 4) == 0; + auto wstr = WideString(filename); + return _waccess (wstr.c_str(), 4) == 0; #endif }