[2/3] msi: Add the Session object as a global member to custom action scripts.

Hans Leidekker hans at codeweavers.com
Tue May 1 05:38:52 CDT 2012


Fixes http://bugs.winehq.org/show_bug.cgi?id=30558
---
 dlls/msi/script.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/script.c b/dlls/msi/script.c
index e157c6d..236b60b 100644
--- a/dlls/msi/script.c
+++ b/dlls/msi/script.c
@@ -136,7 +136,7 @@ DWORD call_script(MSIHANDLE hPackage, INT type, LPCWSTR script, LPCWSTR function
     if (FAILED(hr)) goto done;
 
     /* Add the session object */
-    hr = IActiveScript_AddNamedItem(pActiveScript, szSession, SCRIPTITEM_ISVISIBLE);
+    hr = IActiveScript_AddNamedItem(pActiveScript, szSession, SCRIPTITEM_GLOBALMEMBERS);
     if (FAILED(hr)) goto done;
 
     /* Pass the script to the engine */
-- 
1.7.10







More information about the wine-patches mailing list