msi: script: Discriminate properly between JScript and VBScript.

This commit is contained in:
Misha Koshelev 2007-05-04 08:10:21 -05:00 committed by Alexandre Julliard
parent e79a94d45b
commit 144ef422e0
1 changed files with 2 additions and 2 deletions

View File

@ -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);