Daniel Lehman : msvcp140: Add sprintf.

Alexandre Julliard julliard at winehq.org
Wed Aug 3 18:09:16 CDT 2016


Module: wine
Branch: master
Commit: 69ad826ebb286ba004b010b864da494e50be753d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=69ad826ebb286ba004b010b864da494e50be753d

Author: Daniel Lehman <dlehman at esri.com>
Date:   Fri Apr  8 16:14:28 2016 -0700

msvcp140: Add sprintf.

Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcp90/msvcp_main.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/msvcp90/msvcp_main.c b/dlls/msvcp90/msvcp_main.c
index a60c4b6..c9a72d2 100644
--- a/dlls/msvcp90/msvcp_main.c
+++ b/dlls/msvcp90/msvcp_main.c
@@ -117,6 +117,16 @@ int __cdecl _scprintf(const char* fmt, ...)
     __ms_va_end(valist);
     return ret;
 }
+
+int __cdecl sprintf(char *buf, const char *fmt, ...)
+{
+    int ret;
+    __ms_va_list valist;
+    __ms_va_start(valist, fmt);
+    ret = __stdio_common_vsprintf(UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR, buf, -1, fmt, NULL, valist);
+    __ms_va_end(valist);
+    return ret;
+}
 #endif
 
 static void init_cxx_funcs(void)




More information about the wine-cvs mailing list