msi: Keep track of the patch filename in apply_registered_patch.

This commit is contained in:
Hans Leidekker 2010-07-20 14:55:08 +02:00 committed by Alexandre Julliard
parent b87271150a
commit 9b329d5bab
1 changed files with 7 additions and 0 deletions

View File

@ -1210,6 +1210,13 @@ static UINT apply_registered_patch( MSIPACKAGE *package, LPCWSTR patch_code )
return r;
}
patch_info->localfile = strdupW( patch_file );
if (!patch_info->localfile)
{
msiobj_release( &patch_db->hdr );
return ERROR_OUTOFMEMORY;
}
r = msi_apply_patch_db( package, patch_db, patch_info );
msiobj_release( &patch_db->hdr );
if (r != ERROR_SUCCESS)