msi: Allocate MSISCRIPT structure at package creation time.
This commit is contained in:
parent
a03d0bcaa9
commit
b7a81df452
|
@ -6394,7 +6394,6 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
|
|||
|
||||
MSI_SetPropertyW(package, szAction, szInstall);
|
||||
|
||||
package->script = msi_alloc_zero(sizeof(MSISCRIPT));
|
||||
package->script->InWhatSequence = SEQUENCE_INSTALL;
|
||||
|
||||
if (szPackagePath)
|
||||
|
|
|
@ -969,6 +969,7 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
|
|||
MSI_SetPropertyW( package, OriginalDatabase, fullpath );
|
||||
}
|
||||
|
||||
package->script = msi_alloc_zero( sizeof(MSISCRIPT) );
|
||||
*pPackage = package;
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue