From 3b41fab0e9341bdfdc511b9cdc8235dd2d9c724c Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 12 Dec 2012 11:16:43 +0100 Subject: [PATCH] msvcrt: Added _fwprintf_l implementation. --- dlls/msvcr100/msvcr100.spec | 2 +- dlls/msvcr80/msvcr80.spec | 2 +- dlls/msvcr90/msvcr90.spec | 2 +- dlls/msvcrt/file.c | 13 +++++++++++++ dlls/msvcrt/msvcrt.spec | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index 877f76e1e30..b4c702c2849 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -854,7 +854,7 @@ @ cdecl _fullpath(ptr str long) msvcrt._fullpath @ cdecl _futime32(long ptr) msvcrt._futime32 @ cdecl _futime64(long ptr) msvcrt._futime64 -@ stub _fwprintf_l +@ varargs _fwprintf_l(ptr wstr ptr) msvcrt._fwprintf_l @ stub _fwprintf_p @ stub _fwprintf_p_l @ stub _fwprintf_s_l diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index d62590d1197..b08208a11b7 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -508,7 +508,7 @@ @ cdecl _fullpath(ptr str long) msvcrt._fullpath @ cdecl _futime32(long ptr) msvcrt._futime32 @ cdecl _futime64(long ptr) msvcrt._futime64 -@ stub _fwprintf_l +@ varargs _fwprintf_l(ptr wstr ptr) msvcrt._fwprintf_l @ stub _fwprintf_p @ stub _fwprintf_p_l @ stub _fwprintf_s_l diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index 61b0340630c..4729b7658b9 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -503,7 +503,7 @@ @ cdecl _fullpath(ptr str long) msvcrt._fullpath @ cdecl _futime32(long ptr) msvcrt._futime32 @ cdecl _futime64(long ptr) msvcrt._futime64 -@ stub _fwprintf_l +@ varargs _fwprintf_l(ptr wstr ptr) msvcrt._fwprintf_l @ stub _fwprintf_p @ stub _fwprintf_p_l @ stub _fwprintf_s_l diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index 4b9abc97d0d..e157ede01b5 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -3958,6 +3958,19 @@ int CDECL MSVCRT_fwprintf_s(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, ... return res; } +/********************************************************************* + * _fwprintf_l (MSVCRT.@) + */ +int CDECL MSVCRT__fwprintf_l(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, MSVCRT__locale_t locale, ...) +{ + __ms_va_list valist; + int res; + __ms_va_start(valist, locale); + res = MSVCRT__vfwprintf_l(file, format, locale, valist); + __ms_va_end(valist); + return res; +} + /********************************************************************* * printf (MSVCRT.@) */ diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index f95219f06b6..db9e22f6026 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -462,7 +462,7 @@ @ cdecl _futime(long ptr) @ cdecl _futime32(long ptr) @ cdecl _futime64(long ptr) -# stub _fwprintf_l(ptr wstr ptr) +@ varargs _fwprintf_l(ptr wstr ptr) MSVCRT__fwprintf_l # stub _fwprintf_p(ptr wstr) # stub _fwprintf_p_l(ptr wstr ptr) # stub _fwprintf_s_l(ptr wstr ptr)