msvcp71: Use MultiByteToWideChar in _Fiopen implementation.

Spotted by Yeshun Ye.
This commit is contained in:
Piotr Caban 2022-08-18 10:17:24 +02:00 committed by Alexandre Julliard
parent 4a3c7e2758
commit e047352193

View file

@ -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