From: YeshunYe yeyeshun@uniontech.com
Otherwise 'mbstowcs_s' will make a wrong path if the parameter 'name' contains non-ASCII words in non-ASCII environments.
Signed-off-by: YeshunYe yeyeshun@uniontech.com --- dlls/msvcp60/ios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcp60/ios.c b/dlls/msvcp60/ios.c index 1fef80f8a43..96e74defe95 100644 --- a/dlls/msvcp60/ios.c +++ b/dlls/msvcp60/ios.c @@ -2127,7 +2127,7 @@ FILE* __cdecl ___Fiopen(const char *name, int mode) wchar_t nameW[FILENAME_MAX];
TRACE("(%p %d)\n", name, mode); - + setlocale(LC_ALL, ""); if(mbstowcs_s(NULL, nameW, FILENAME_MAX, name, FILENAME_MAX-1) != 0) return NULL; return _Fiopen_wchar(nameW, mode, _SH_DENYNO);