mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:47:17 +00:00
msi: Move msi_free(msiFilePath) to enable ERR message to use it before it is freed.
This commit is contained in:
parent
725057da47
commit
7aa3917823
|
@ -3679,14 +3679,15 @@ static UINT msi_make_package_local( MSIPACKAGE *package, HKEY hkey )
|
|||
|
||||
msiFilePath = msi_dup_property( package, szOriginalDatabase );
|
||||
r = CopyFileW( msiFilePath, packagefile, FALSE);
|
||||
msi_free( msiFilePath );
|
||||
|
||||
if (!r)
|
||||
{
|
||||
ERR("Unable to copy package (%s -> %s) (error %d)\n",
|
||||
debugstr_w(msiFilePath), debugstr_w(packagefile), GetLastError());
|
||||
msi_free( msiFilePath );
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
}
|
||||
msi_free( msiFilePath );
|
||||
|
||||
/* FIXME: maybe set this key in ACTION_RegisterProduct instead */
|
||||
msi_reg_set_val_str( hkey, INSTALLPROPERTY_LOCALPACKAGEW, packagefile );
|
||||
|
|
Loading…
Reference in a new issue