Skip to content

Commit

Permalink
Change _access to _waccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored and coelckers committed Feb 12, 2021
1 parent 349a2e9 commit f2469c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/utility/cmdlib.cpp
Expand Up @@ -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
}

Expand Down

0 comments on commit f2469c6

Please sign in to comment.