diff options
Diffstat (limited to 'setup_native/source/win32/customactions/tools')
-rw-r--r-- | setup_native/source/win32/customactions/tools/checkversion.cxx | 1 | ||||
-rw-r--r-- | setup_native/source/win32/customactions/tools/seterror.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/setup_native/source/win32/customactions/tools/checkversion.cxx b/setup_native/source/win32/customactions/tools/checkversion.cxx index 526cc76d0839..fb6f77d74bfa 100644 --- a/setup_native/source/win32/customactions/tools/checkversion.cxx +++ b/setup_native/source/win32/customactions/tools/checkversion.cxx @@ -64,6 +64,7 @@ inline void OutputDebugStringFormat( LPCTSTR pFormat, ... ) va_start( args, pFormat ); StringCchVPrintf( buffer, sizeof(buffer), pFormat, args ); OutputDebugString( buffer ); + va_end(args); } #else static inline void OutputDebugStringFormat( LPCTSTR, ... ) diff --git a/setup_native/source/win32/customactions/tools/seterror.cxx b/setup_native/source/win32/customactions/tools/seterror.cxx index c7de7b7a761a..a9af467b2068 100644 --- a/setup_native/source/win32/customactions/tools/seterror.cxx +++ b/setup_native/source/win32/customactions/tools/seterror.cxx @@ -44,6 +44,7 @@ inline void OutputDebugStringFormat( LPCTSTR pFormat, ... ) va_start( args, pFormat ); StringCchVPrintf( buffer, sizeof(buffer), pFormat, args ); OutputDebugString( buffer ); + va_end(args); } #else static inline void OutputDebugStringFormat( LPCTSTR, ... ) |