[PATCH v2 0/1] MR5254: msvcrt: Handle wide specifiers option in __stdio_common_vfscanf()
This prevents log spam in one game. -- v2: msvcrt: Handle wide specifiers option in __stdio_common_vfscanf(). https://gitlab.winehq.org/wine/wine/-/merge_requests/5254
From: Aida Jonikienė <aidas957(a)gmail.com> This prevents log spam in one game. --- dlls/msvcrt/scanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/scanf.c b/dlls/msvcrt/scanf.c index 89575101471..c8bbe15f373 100644 --- a/dlls/msvcrt/scanf.c +++ b/dlls/msvcrt/scanf.c @@ -710,7 +710,7 @@ int CDECL __stdio_common_vfscanf(unsigned __int64 options, _locale_t locale, va_list valist) { - if (options & ~_CRT_INTERNAL_SCANF_SECURECRT) + if (options & ~(_CRT_INTERNAL_SCANF_SECURECRT | _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS)) FIXME("options %#I64x not handled\n", options); if (options & _CRT_INTERNAL_SCANF_SECURECRT) return vfscanf_s_l(file, format, locale, valist); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5254
On Thu Mar 7 21:02:42 2024 +0000, Piotr Caban wrote:
The flag has only effect on wide scanf and can be ignored in __stdio_common_vfscanf. Please change the code to: ```c if (options & ~(_CRT_INTERNAL_SCANF_SECURECRT | _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS)) FIXME("options %#I64x not handled\n", options); ``` I just updated the MR to handle this
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5254#note_63901
This merge request was approved by Piotr Caban. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5254
participants (2)
-
Aida Jonikienė -
Piotr Caban (@piotr)