mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 01:29:47 +00:00
msvcp71: Use MultiByteToWideChar in _Fiopen implementation.
Spotted by Yeshun Ye.
This commit is contained in:
parent
4a3c7e2758
commit
e047352193
|
@ -3262,7 +3262,7 @@ FILE* __cdecl _Fiopen(const char *name, int mode, int prot)
|
|||
|
||||
TRACE("(%s %d %d)\n", name, mode, prot);
|
||||
|
||||
#if _MSVCP_VER >= 71 && _MSVCP_VER <= 90
|
||||
#if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
|
||||
if(mbstowcs_s(NULL, nameW, FILENAME_MAX, name, FILENAME_MAX-1) != 0)
|
||||
return NULL;
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue