Author: tfaber
Date: Wed Apr 6 19:31:20 2016
New Revision: 71108
URL:
http://svn.reactos.org/svn/reactos?rev=71108&view=rev
Log:
[NTDLL_APITEST]
- Add missing va_end. Patch by Víctor Martínez Calvo.
ROSTESTS-202 #resolve
Modified:
trunk/rostests/apitests/ntdll/sprintf.c
Modified: trunk/rostests/apitests/ntdll/sprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/sprintf.c?…
==============================================================================
--- trunk/rostests/apitests/ntdll/sprintf.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/sprintf.c [iso-8859-1] Wed Apr 6 19:31:20 2016
@@ -29,9 +29,13 @@
{
const TCHAR * fmt = format;
va_list argptr;
+ int ret;
va_start(argptr, format);
- return p_vsprintf(buf, fmt, argptr);
+ ret = p_vsprintf(buf, fmt, argptr);
+ va_end(argptr);
+
+ return ret;
}
int
@@ -39,9 +43,13 @@
{
const wchar_t * fmt = format;
va_list argptr;
+ int ret;
va_start(argptr, format);
- return _vsnwprintf(buf, MAXLONG, fmt, argptr);
+ ret = _vsnwprintf(buf, MAXLONG, fmt, argptr);
+ va_end(argptr);
+
+ return ret;
}
#define sprintf(buf, format, ...) my_sprintf(buf, format, __VA_ARGS__);