msi: Get rid of the goto in MSI_ApplicablePatchW.
This commit is contained in:
parent
0a4984280f
commit
c815432a50
@ -541,15 +541,14 @@ static UINT MSI_ApplicablePatchW( MSIPACKAGE *package, LPCWSTR patch )
|
|||||||
si = MSI_GetSummaryInformationW( patch_db->storage, 0 );
|
si = MSI_GetSummaryInformationW( patch_db->storage, 0 );
|
||||||
if (!si)
|
if (!si)
|
||||||
{
|
{
|
||||||
r = ERROR_FUNCTION_FAILED;
|
msiobj_release( &patch_db->hdr );
|
||||||
goto done;
|
return ERROR_FUNCTION_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
r = msi_check_patch_applicable( package, si );
|
r = msi_check_patch_applicable( package, si );
|
||||||
if (r != ERROR_SUCCESS)
|
if (r != ERROR_SUCCESS)
|
||||||
TRACE("patch not applicable\n");
|
TRACE("patch not applicable\n");
|
||||||
|
|
||||||
done:
|
|
||||||
msiobj_release( &patch_db->hdr );
|
msiobj_release( &patch_db->hdr );
|
||||||
msiobj_release( &si->hdr );
|
msiobj_release( &si->hdr );
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user