Add missing va_end() calls in PC/launcher.c (GH-7690)

This commit is contained in:
Zackery Spytz 2018-06-15 16:39:04 -06:00 committed by Steve Dower
parent ee5ef309c7
commit 3a6d752e35

View file

@ -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);