summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-08-07 20:36:00 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-08-07 20:36:26 +0200
commit47999a4304cdb72ee1e78d223e671d17f240bd61 (patch)
treea190179d6496ffe995eaa696d69738d4b7880301 /setup_native
parentfb1473692e9be2093924ab4df7c982dc282af18f (diff)
cppcheck: va_list 'args' was opened but not closed by va_end()
Change-Id: Id7602dd19ac142dbe2680ddf7eab308a087e971a
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx1
-rw-r--r--setup_native/source/win32/customactions/shellextensions/checkpatches.cxx1
-rw-r--r--setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx1
-rw-r--r--setup_native/source/win32/customactions/tools/checkversion.cxx1
-rw-r--r--setup_native/source/win32/customactions/tools/seterror.cxx1
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, ... )