1
0
Fork 0

Add some missing va_ends. Reported by jmarsh

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4227
This commit is contained in:
Peter Veenstra 2019-05-23 12:51:10 +00:00
parent fa8b4c5d00
commit 5888c05dd1
3 changed files with 3 additions and 0 deletions

View file

@ -769,6 +769,7 @@ static void gen_call_function(void * func,char const* ops,...) {
}
ops++;
}
va_end(params);
#if defined (MACOSX)
/* align stack */

View file

@ -490,6 +490,7 @@ static void uprintf(char const *s, ...)
va_list arg_ptr;
va_start (arg_ptr, s);
vsprintf(ubufp, s, arg_ptr);
va_end(arg_ptr);
while (*ubufp)
ubufp++;
}

View file

@ -50,6 +50,7 @@ void Msg(const char fmt[], ...) {
va_start(val, fmt);
wvsprintf(buf, fmt, val);
va_end(val);
const COORD _80x50 = {80,50};
static BOOL startup = (AllocConsole(), SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), _80x50));