From 67189f9d1a0e15a58d5e72494c27352c47389aaa Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Fri, 16 Sep 2005 18:45:19 +0000 Subject: [PATCH] Fix a bug in a previous patch spotted by Dieter Komendera. --- dlls/msi/action.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index b85260f34c..bbe74b9843 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -3405,7 +3405,6 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package) buffer = msi_dup_property( package, szPropKeys[i] ); msi_reg_set_val_str( hkey, szRegKeys[i], buffer ); HeapFree(GetProcessHeap(),0,buffer); - i++; } msi_reg_set_val_dword( hkey, szWindowsInstaller, 1 ); @@ -3668,12 +3667,11 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package) if (rc != ERROR_SUCCESS) goto end; - i = 0; - while (szPropKeys[i][0]!=0) + for( i = 0; szPropKeys[i][0]; i++ ) { buffer = msi_dup_property( package, szPropKeys[i] ); msi_reg_set_val_str( hkey, szRegKeys[i], buffer ); - i++; + HeapFree( GetProcessHeap(), 0, buffer ); } end: -- 2.32.0.93.g670b81a890