Hans Leidekker : msi: Allocate MSISCRIPT structure at package creation time .
Alexandre Julliard
julliard at winehq.org
Mon Oct 19 09:56:13 CDT 2009
Module: wine
Branch: master
Commit: b7a81df4522c1fba50f609af3d9dda95f8ee1364
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7a81df4522c1fba50f609af3d9dda95f8ee1364
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Oct 19 11:13:54 2009 +0200
msi: Allocate MSISCRIPT structure at package creation time.
---
dlls/msi/action.c | 1 -
dlls/msi/package.c | 1 +
2 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index e08f25a..e108701 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -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)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index 06e3416..9c92842 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -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;
More information about the wine-cvs
mailing list