mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-30 00:00:37 +01:00
correct used argument for va_start
This commit is contained in:
parent
43f87b4a0f
commit
a51bdf4a69
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue