Add missing va_end() calls in PC/launcher.c (GH-7690)
(cherry picked from commit 3a6d752e35
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
5085687645
commit
ba7970fd0a
|
@ -61,6 +61,7 @@ debug(wchar_t * format, ...)
|
|||
if (log_fp != NULL) {
|
||||
va_start(va, format);
|
||||
vfwprintf_s(log_fp, format, va);
|
||||
va_end(va);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,6 +84,7 @@ error(int rc, wchar_t * format, ... )
|
|||
|
||||
va_start(va, format);
|
||||
len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va);
|
||||
va_end(va);
|
||||
|
||||
if (rc == 0) { /* a Windows error */
|
||||
winerror(GetLastError(), win_message, MSGSIZE);
|
||||
|
|
Loading…
Reference in New Issue