[PATCH 0/1] MR673: msvcp71: Use MultiByteToWideChar in _Fiopen implemen.
Also use MultiByteToWideChar in msvcp71. I've made a mistake while testing it earlier. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/673
From: Piotr Caban <piotr(a)codeweavers.com> Spotted by Yeshun Ye. --- dlls/msvcp90/ios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c index a8014a3dfcf..d176dffa802 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -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 -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/673
participants (2)
-
Piotr Caban -
Piotr Caban (@piotr)