From 144ef422e0afdb861eb4f49fcfc7a859cc2e5e4a Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Fri, 4 May 2007 08:10:21 -0500 Subject: [PATCH] msi: script: Discriminate properly between JScript and VBScript. --- dlls/msi/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/script.c b/dlls/msi/script.c index f2fc6426dfc..018b1982d46 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);