Commit c815432a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Get rid of the goto in MSI_ApplicablePatchW.

parent 0a498428
...@@ -541,15 +541,14 @@ static UINT MSI_ApplicablePatchW( MSIPACKAGE *package, LPCWSTR patch ) ...@@ -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;
......
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