diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-08-07 20:36:00 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-08-07 20:36:26 +0200 |
commit | 47999a4304cdb72ee1e78d223e671d17f240bd61 (patch) | |
tree | a190179d6496ffe995eaa696d69738d4b7880301 /setup_native | |
parent | fb1473692e9be2093924ab4df7c982dc282af18f (diff) |
cppcheck: va_list 'args' was opened but not closed by va_end()
Change-Id: Id7602dd19ac142dbe2680ddf7eab308a087e971a
Diffstat (limited to 'setup_native')
5 files changed, 5 insertions, 0 deletions
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx index 40ed84b84bac..728121b564c8 100644 --- a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx +++ b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx @@ -80,6 +80,7 @@ inline void OutputDebugStringFormat( LPCSTR pFormat, ... ) va_start( args, pFormat ); StringCchVPrintfA( buffer, sizeof(buffer), pFormat, args ); OutputDebugStringA( buffer ); + va_end(args); } #else static inline void OutputDebugStringFormat( LPCSTR, ... ) diff --git a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx index d76b7646b7db..33ad29fab7e8 100644 --- a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx +++ b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx @@ -54,6 +54,7 @@ inline void OutputDebugStringFormat( LPCSTR pFormat, ... ) va_start( args, pFormat ); StringCchVPrintfA( buffer, sizeof(buffer), pFormat, args ); OutputDebugStringA( buffer ); + va_end(args); } #else static inline void OutputDebugStringFormat( LPCSTR, ... ) diff --git a/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx b/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx index 5253b41f5cf2..ab039e2c48fe 100644 --- a/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx +++ b/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx @@ -55,6 +55,7 @@ inline void OutputDebugStringFormat( LPCSTR pFormat, ... ) va_start( args, pFormat ); StringCchVPrintfA( buffer, sizeof(buffer), pFormat, args ); OutputDebugStringA( buffer ); + va_end(args); } #else static inline void OutputDebugStringFormat( LPCSTR, ... ) 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, ... ) |