msi: Get rid of the goto in MSI_ApplicablePatchW.

This commit is contained in:
Hans Leidekker 2010-05-25 12:18:32 +02:00 committed by Alexandre Julliard
parent 0a4984280f
commit c815432a50
1 changed files with 2 additions and 3 deletions

View File

@ -541,15 +541,14 @@ static UINT MSI_ApplicablePatchW( MSIPACKAGE *package, LPCWSTR patch )
si = MSI_GetSummaryInformationW( patch_db->storage, 0 );
if (!si)
{
r = ERROR_FUNCTION_FAILED;
goto done;
msiobj_release( &patch_db->hdr );
return ERROR_FUNCTION_FAILED;
}
r = msi_check_patch_applicable( package, si );
if (r != ERROR_SUCCESS)
TRACE("patch not applicable\n");
done:
msiobj_release( &patch_db->hdr );
msiobj_release( &si->hdr );
return r;