Commit 67189f9d authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 4a202c21
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment