Fix a bug in a previous patch spotted by Dieter Komendera.

This commit is contained in:
Mike McCormack 2005-09-16 18:45:19 +00:00 committed by Alexandre Julliard
parent 4a202c2112
commit 67189f9d1a
1 changed files with 2 additions and 4 deletions

View File

@ -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: