diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index 38ec0e1353d..99d6c3d63bc 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -1099,7 +1099,7 @@ @ varargs _snscanf_s(str long str) msvcrt._snscanf_s @ varargs _snscanf_s_l(str long str ptr) msvcrt._snscanf_s_l @ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf -@ stub _snwprintf_l +@ varargs _snwprintf_l(ptr long wstr ptr) msvcrt._snwprintf_l @ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s @ stub _snwprintf_s_l @ varargs _snwscanf(wstr long wstr) msvcrt._snwscanf diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index a083053229c..ca284bf655c 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -953,7 +953,7 @@ @ varargs _snscanf_s(str long str) msvcrt._snscanf_s @ varargs _snscanf_s_l(str long str ptr) msvcrt._snscanf_s_l @ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf -@ stub _snwprintf_l +@ varargs _snwprintf_l(ptr long wstr ptr) msvcrt._snwprintf_l @ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s @ stub _snwprintf_s_l @ varargs _snwscanf(wstr long wstr) msvcrt._snwscanf diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index 475e3a932bc..2ede2cca2cd 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -946,7 +946,7 @@ @ varargs _snscanf_s(str long str) msvcrt._snscanf_s @ varargs _snscanf_s_l(str long str ptr) msvcrt._snscanf_s_l @ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf -@ stub _snwprintf_l +@ varargs _snwprintf_l(ptr long wstr ptr) msvcrt._snwprintf_l @ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s @ stub _snwprintf_s_l @ varargs _snwscanf(wstr long wstr) msvcrt._snwscanf diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 75a3b354d7f..1260dfa5d68 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -890,7 +890,7 @@ @ varargs _snscanf_s(str long str) MSVCRT__snscanf_s @ varargs _snscanf_s_l(str long str ptr) MSVCRT__snscanf_s_l @ varargs _snwprintf(ptr long wstr) MSVCRT__snwprintf -# stub _snwprintf_l(ptr long wstr ptr) +@ varargs _snwprintf_l(ptr long wstr ptr) MSVCRT__snwprintf_l @ varargs _snwprintf_s(ptr long long wstr) MSVCRT__snwprintf_s # stub _snwprintf_s_l(ptr long long wstr ptr) @ varargs _snwscanf(wstr long wstr) MSVCRT__snwscanf diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index 17ff5321b8c..b6786cef421 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -777,6 +777,20 @@ int CDECL MSVCRT__snwprintf( MSVCRT_wchar_t *str, unsigned int len, const MSVCRT return retval; } +/********************************************************************* + * _snwprintf_l (MSVCRT.@) + */ +int CDECL MSVCRT__snwprintf_l( MSVCRT_wchar_t *str, unsigned int len, const MSVCRT_wchar_t *format, + MSVCRT__locale_t locale, ...) +{ + int retval; + __ms_va_list valist; + __ms_va_start(valist, locale); + retval = MSVCRT_vsnwprintf_l(str, len, format, locale, valist); + __ms_va_end(valist); + return retval; +} + /********************************************************************* * _snwprintf_s (MSVCRT.@) */