From a51bdf4a694b2e7c730451b0547addff4a108587 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Sat, 3 Apr 2004 22:43:27 +0000 Subject: [PATCH] correct used argument for va_start --- hw/xwin/winerror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xwin/winerror.c b/hw/xwin/winerror.c index 8b413485b..968467026 100644 --- a/hw/xwin/winerror.c +++ b/hw/xwin/winerror.c @@ -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);