From: Eric Pouech <epouech@codeweavers.com> Signed-off-by: Eric Pouech <epouech@codeweavers.com> --- include/msvcrt/corecrt_wstdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/msvcrt/corecrt_wstdio.h b/include/msvcrt/corecrt_wstdio.h index bc5196686c1..7d4274783b2 100644 --- a/include/msvcrt/corecrt_wstdio.h +++ b/include/msvcrt/corecrt_wstdio.h @@ -405,7 +405,7 @@ static inline int __cdecl wscanf(FILE *file, const wchar_t *format, ...) va_list args; va_start(args, format); - ret = __stdio_common_vfwscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS, stdin, format, NULL, args); + ret = __stdio_common_vfwscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS, file, format, NULL, args); va_end(args); return ret; } @@ -416,7 +416,7 @@ static inline int __cdecl wscanf_s(FILE *file, const wchar_t *format, ...) va_list args; va_start(args, format); - ret = __stdio_common_vfwscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, stdin, format, NULL, args); + ret = __stdio_common_vfwscanf(_CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, file, format, NULL, args); va_end(args); return ret; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10130