From 8590023041e7ff51966ecdda7a7e238633b84f4b Mon Sep 17 00:00:00 2001 From: Bartosz Kosiorek Date: Sun, 6 Nov 2022 00:41:46 +0100 Subject: [PATCH] msvcrt: Add _vcwprintf_l implementation. --- dlls/msvcr100/msvcr100.spec | 2 +- dlls/msvcr110/msvcr110.spec | 2 +- dlls/msvcr120/msvcr120.spec | 2 +- dlls/msvcr80/msvcr80.spec | 2 +- dlls/msvcr90/msvcr90.spec | 2 +- dlls/msvcrt/console.c | 7 +++++++ dlls/msvcrt/msvcrt.spec | 2 +- 7 files changed, 13 insertions(+), 6 deletions(-) diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index dc028bd932b..1d80726ee3a 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -1428,7 +1428,7 @@ @ stub _vcprintf_s @ stub _vcprintf_s_l @ cdecl _vcwprintf(wstr ptr) -@ stub _vcwprintf_l +@ cdecl _vcwprintf_l(wstr ptr ptr) @ stub _vcwprintf_p @ stub _vcwprintf_p_l @ stub _vcwprintf_s diff --git a/dlls/msvcr110/msvcr110.spec b/dlls/msvcr110/msvcr110.spec index 1e46cf9983e..7f255a9414b 100644 --- a/dlls/msvcr110/msvcr110.spec +++ b/dlls/msvcr110/msvcr110.spec @@ -1785,7 +1785,7 @@ @ stub _vcprintf_s @ stub _vcprintf_s_l @ cdecl _vcwprintf(wstr ptr) -@ stub _vcwprintf_l +@ cdecl _vcwprintf_l(wstr ptr ptr) @ stub _vcwprintf_p @ stub _vcwprintf_p_l @ stub _vcwprintf_s diff --git a/dlls/msvcr120/msvcr120.spec b/dlls/msvcr120/msvcr120.spec index 59b99a04a31..3c606ebf391 100644 --- a/dlls/msvcr120/msvcr120.spec +++ b/dlls/msvcr120/msvcr120.spec @@ -1804,7 +1804,7 @@ @ stub _vcprintf_s @ stub _vcprintf_s_l @ cdecl _vcwprintf(wstr ptr) -@ stub _vcwprintf_l +@ cdecl _vcwprintf_l(wstr ptr ptr) @ stub _vcwprintf_p @ stub _vcwprintf_p_l @ stub _vcwprintf_s diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index 5dbb83893e2..cf885153e7a 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -1108,7 +1108,7 @@ @ stub _vcprintf_s @ stub _vcprintf_s_l @ cdecl _vcwprintf(wstr ptr) -@ stub _vcwprintf_l +@ cdecl _vcwprintf_l(wstr ptr ptr) @ stub _vcwprintf_p @ stub _vcwprintf_p_l @ stub _vcwprintf_s diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index e67ea400657..87b31d1a048 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -1083,7 +1083,7 @@ @ stub _vcprintf_s @ stub _vcprintf_s_l @ cdecl _vcwprintf(wstr ptr) -@ stub _vcwprintf_l +@ cdecl _vcwprintf_l(wstr ptr ptr) @ stub _vcwprintf_p @ stub _vcwprintf_p_l @ stub _vcwprintf_s diff --git a/dlls/msvcrt/console.c b/dlls/msvcrt/console.c index 70df825866f..2c92f0b3811 100644 --- a/dlls/msvcrt/console.c +++ b/dlls/msvcrt/console.c @@ -555,6 +555,13 @@ int WINAPIV _cprintf(const char* format, ...) return retval; } +/********************************************************************* + * _vcwprintf_l (MSVCRT.@) + */ +int CDECL _vcwprintf_l(const wchar_t* format, _locale_t locale, va_list valist) +{ + return pf_printf_w(puts_clbk_console_w, NULL, format, locale, 0, arg_clbk_valist, NULL, &valist); +} /********************************************************************* * _vcwprintf (MSVCRT.@) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index a82adcb2951..6dcb0767c31 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -1042,7 +1042,7 @@ # stub _vcprintf_s(str ptr) # stub _vcprintf_s_l(str ptr ptr) @ cdecl _vcwprintf(wstr ptr) -# stub _vcwprintf_l(wstr ptr ptr) +@ cdecl _vcwprintf_l(wstr ptr ptr) # stub _vcwprintf_p(wstr ptr) # stub _vcwprintf_p_l(wstr ptr ptr) # stub _vcwprintf_s(wstr ptr) -- 2.11.4.GIT