Commit e0473521 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp71: Use MultiByteToWideChar in _Fiopen implementation.

Spotted by Yeshun Ye.
parent 4a3c7e27
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment