mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +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
|
#ifndef _WIN32
|
||||||
return access (filename, R_OK) == 0;
|
return access (filename, R_OK) == 0;
|
||||||
#else
|
#else
|
||||||
return _access (filename, 4) == 0;
|
auto wstr = WideString(filename);
|
||||||
|
return _waccess (wstr.c_str(), 4) == 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue