From: Piotr Caban piotr@codeweavers.com
--- dlls/msvcrt/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index 66ff2f5dcba..dda12a70194 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -4626,7 +4626,7 @@ FILE* CDECL freopen(const char *path, const char *mode, FILE* file) FILE *ret; wchar_t *pathW = NULL, *modeW = NULL;
- if (path && !(pathW = msvcrt_wstrdupa(path))) return NULL; + if (path && !(pathW = wstrdupa_utf8(path))) return NULL; if (mode && !(modeW = msvcrt_wstrdupa(mode))) { free(pathW);