Module: wine Branch: master Commit: 2242f281bababdbf4aa2aaf27608dc1a954cf4ec URL: http://source.winehq.org/git/wine.git/?a=commit;h=2242f281bababdbf4aa2aaf276...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Apr 22 13:51:03 2010 +0200
msvcrt: Added _swscanf_l implementation.
---
dlls/msvcr80/msvcr80.spec | 2 +- dlls/msvcr90/msvcr90.spec | 2 +- dlls/msvcrt/msvcrt.spec | 2 +- dlls/msvcrt/scanf.c | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index b20223a..08a372d 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -975,7 +975,7 @@ @ stub _swprintf_p @ stub _swprintf_p_l @ stub _swprintf_s_l -@ stub _swscanf_l +@ varargs _swscanf_l(wstr wstr ptr) msvcrt._swscanf_l @ stub _swscanf_s_l @ extern _sys_errlist msvcrt._sys_errlist @ extern _sys_nerr msvcrt._sys_nerr diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index 9da64e7..355bfe4 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -962,7 +962,7 @@ @ stub _swprintf_p @ stub _swprintf_p_l @ stub _swprintf_s_l -@ stub _swscanf_l +@ varargs _swscanf_l(wstr wstr ptr) msvcrt._swscanf_l @ stub _swscanf_s_l @ extern _sys_errlist msvcrt._sys_errlist @ extern _sys_nerr msvcrt._sys_nerr diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 6eb3114..84298e7 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -909,7 +909,7 @@ # stub _swprintf_c_l # stub _swprintf_p_l # stub _swprintf_s_l -# stub _swscanf_l +@ varargs _swscanf_l(wstr wstr ptr) MSVCRT__swscanf_l # stub _swscanf_s_l @ extern _sys_errlist MSVCRT__sys_errlist @ extern _sys_nerr MSVCRT__sys_nerr diff --git a/dlls/msvcrt/scanf.c b/dlls/msvcrt/scanf.c index 079f450..1f7cfef 100644 --- a/dlls/msvcrt/scanf.c +++ b/dlls/msvcrt/scanf.c @@ -246,6 +246,20 @@ int CDECL MSVCRT_swscanf(const MSVCRT_wchar_t *str, const MSVCRT_wchar_t *format return res; }
+/********************************************************************* + * _swscanf_l (MSVCRT.@) + */ +int CDECL MSVCRT__swscanf_l(const MSVCRT_wchar_t *str, const MSVCRT_wchar_t *format, + MSVCRT__locale_t locale, ...) +{ + __ms_va_list valist; + int res; + + __ms_va_start(valist, locale); + res = MSVCRT_vswscanf_l(str, format, locale, valist); + __ms_va_end(valist); + return res; +}
/********************************************************************* * _cscanf (MSVCRT.@)