msi: Allocate MSISCRIPT structure at package creation time.

This commit is contained in:
Hans Leidekker 2009-10-19 11:13:54 +02:00 committed by Alexandre Julliard
parent a03d0bcaa9
commit b7a81df452
2 changed files with 1 additions and 1 deletions

View File

@ -6394,7 +6394,6 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
MSI_SetPropertyW(package, szAction, szInstall); MSI_SetPropertyW(package, szAction, szInstall);
package->script = msi_alloc_zero(sizeof(MSISCRIPT));
package->script->InWhatSequence = SEQUENCE_INSTALL; package->script->InWhatSequence = SEQUENCE_INSTALL;
if (szPackagePath) if (szPackagePath)

View File

@ -969,6 +969,7 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
MSI_SetPropertyW( package, OriginalDatabase, fullpath ); MSI_SetPropertyW( package, OriginalDatabase, fullpath );
} }
package->script = msi_alloc_zero( sizeof(MSISCRIPT) );
*pPackage = package; *pPackage = package;
return ERROR_SUCCESS; return ERROR_SUCCESS;