mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 13:20:34 +00:00
Use _wfopen() instead of _wfopen_s to stay compatible with Win XP.
I've used _wfopen_s() because it's newer and the older variants are said to throw warning when build with MSVC. But apparently Windows XP hasn't got that symbol... So just use the normal _wfopen(), MSVC is unsupported anyways. The may or may not enough to restore Win XP compatibility.
This commit is contained in:
parent
1f4e90e0d3
commit
091e1834eb
1 changed files with 1 additions and 5 deletions
|
@ -1161,11 +1161,7 @@ FILE *Q_fopen(const char *file, const char *mode)
|
|||
{
|
||||
if (MultiByteToWideChar(CP_UTF8, 0, mode, -1, wmode, 16) > 0)
|
||||
{
|
||||
FILE *ret;
|
||||
if(_wfopen_s(&ret, wfile, wmode) == 0)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
return _wfopen(wfile, wmode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue