correct used argument for va_start

This commit is contained in:
Alexander Gottwald 2004-04-03 22:43:27 +00:00
parent 43f87b4a0f
commit a51bdf4a69

View file

@ -93,7 +93,7 @@ winMessageBoxF (const char *pszError, UINT uType, ...)
va_list args;
/* Get length of formatted error string */
va_start (args, pszError);
va_start (args, uType);
i = sprintf (NULL, pszError, args);
va_end (args);
@ -103,7 +103,7 @@ winMessageBoxF (const char *pszError, UINT uType, ...)
goto winMessageBoxF_Cleanup;
/* Create the formatted error string */
va_start (args, pszError);
va_start (args, uType);
sprintf (pszErrorF, pszError, args);
va_end (args);