msi: Release the record only after using the record's data.

This commit is contained in:
James Hawkins 2007-10-23 03:06:59 -05:00 committed by Alexandre Julliard
parent ca71287572
commit b6cfc405bd
1 changed files with 1 additions and 1 deletions

View File

@ -4358,9 +4358,9 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
}
key = MSI_RecordGetString(row, 6);
msiobj_release(&row->hdr);
file = get_loaded_file(package, key);
msiobj_release(&row->hdr);
if (!file)
{
ERR("Failed to load the service file\n");