mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Change _access to _waccess
This commit is contained in:
parent
349a2e9235
commit
f2469c6dcf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue