Change _access to _waccess

This commit is contained in:
Cacodemon345 2021-02-12 13:46:44 +06:00 committed by Christoph Oelckers
parent 349a2e9235
commit f2469c6dcf
1 changed files with 2 additions and 1 deletions

View File

@ -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
}