Misha Koshelev : msi: script: Discriminate properly between JScript and VBScript.

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 7 09:10:24 CDT 2007


Module: wine
Branch: master
Commit: 144ef422e0afdb861eb4f49fcfc7a859cc2e5e4a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=144ef422e0afdb861eb4f49fcfc7a859cc2e5e4a

Author: Misha Koshelev <mk144210 at bcm.edu>
Date:   Fri May  4 08:10:21 2007 -0500

msi: script: Discriminate properly between JScript and VBScript.

---

 dlls/msi/script.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/script.c b/dlls/msi/script.c
index f2fc642..018b198 100644
--- a/dlls/msi/script.c
+++ b/dlls/msi/script.c
@@ -103,9 +103,9 @@ DWORD call_script(MSIHANDLE hPackage, INT type, LPCWSTR script, LPCWSTR function
     IUnknown_AddRef((IUnknown *)pActiveScriptSite->pSession);
 
     /* Create the scripting engine */
-    if (type & msidbCustomActionTypeJScript)
+    if ((type & 7) == msidbCustomActionTypeJScript)
 	hr = CLSIDFromProgID(szJScript, &clsid);
-    else if (type & msidbCustomActionTypeVBScript)
+    else if ((type & 7) == msidbCustomActionTypeVBScript)
 	hr = CLSIDFromProgID(szVBScript, &clsid);
     else {
 	ERR("Unknown script type %d\n", type);




More information about the wine-cvs mailing list