summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-08-31 21:08:42 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-08-31 21:09:14 +0200
commit95eaa342814a8ccccfe9fe2d82ca2711b6b8fb02 (patch)
tree00b2f98f0d0854142b777f8981d7c9ffe459e878 /setup_native/source/win32/customactions
parent0f32a95d0af6a19c80f9b7e14fab8753067d3ddf (diff)
cppcheck: Array index is used before limits check
Change-Id: I531430ce4bc0937a023d3e2849ae07d8f94e3e70
Diffstat (limited to 'setup_native/source/win32/customactions')
-rw-r--r--setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
index a0f930ad7d35..40ed84b84bac 100644
--- a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
+++ b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
@@ -280,7 +280,7 @@ static bool checkSomeExtensionInRegistry( const int nStart, const int nEnd )
int nIndex = nStart;
bool bFound = false;
- while ( !bFound && ( g_Extensions[nIndex] != 0 ) && ( nIndex < nEnd ) )
+ while ( !bFound && (nIndex < nEnd) && (g_Extensions[nIndex] != 0) )
{
bFound = ! CheckExtensionInRegistry( g_Extensions[nIndex] );
@@ -296,7 +296,7 @@ static void registerSomeExtensions( MSIHANDLE handle, const int nStart, const in
{ // Check all file extensions
int nIndex = nStart;
- while ( ( g_Extensions[nIndex] != 0 ) && ( nIndex < nEnd ) )
+ while ( (nIndex < nEnd) && (g_Extensions[nIndex] != 0) )
{
registerForExtension( handle, nIndex++, bRegister );
}