https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9be6ac9cbb013440e7a9e…
commit 9be6ac9cbb013440e7a9ebbb689b7ee384b7ca79
Author: Lee Schroeder <spaceseel(a)gmail.com>
AuthorDate: Fri Jan 19 22:08:14 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Fri Jan 19 22:09:47 2018 +0100
[DRWTSN32][SHIMDBG] Add missing va_end.
CORE-14193
---
base/applications/drwtsn32/main.cpp | 1 +
modules/rosapps/applications/devutils/shimdbg/shimdbg.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/base/applications/drwtsn32/main.cpp b/base/applications/drwtsn32/main.cpp
index 2f86518836..65c7dc1995 100644
--- a/base/applications/drwtsn32/main.cpp
+++ b/base/applications/drwtsn32/main.cpp
@@ -32,6 +32,7 @@ void xfprintf(FILE* stream, const char *fmt, ...)
va_start(ap, fmt);
vfprintf(stream, fmt, ap);
vDbgPrintEx(-1, DPFLTR_ERROR_LEVEL, fmt, ap);
+ va_end(ap);
}
diff --git a/modules/rosapps/applications/devutils/shimdbg/shimdbg.c
b/modules/rosapps/applications/devutils/shimdbg/shimdbg.c
index da1117036c..9d8570cf61 100644
--- a/modules/rosapps/applications/devutils/shimdbg/shimdbg.c
+++ b/modules/rosapps/applications/devutils/shimdbg/shimdbg.c
@@ -20,6 +20,7 @@ void xprintf(const char *fmt, ...)
va_start(ap, fmt);
vprintf(fmt, ap);
vDbgPrintEx(-1, DPFLTR_ERROR_LEVEL, fmt, ap);
+ va_end(ap);
}