2010-07-27 15:51:18 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2010-07-27 15:52:17 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2010-07-27 15:51:18 +02:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2010-07-27 15:52:05 +02:00
|
|
|
#include <winreg.h>
|
|
|
|
#include <ole2.h>
|
2012-01-23 12:16:36 +01:00
|
|
|
#include <shellapi.h>
|
2010-07-27 15:52:17 +02:00
|
|
|
#include <activscp.h>
|
2010-07-29 14:58:38 +02:00
|
|
|
#include <initguid.h>
|
|
|
|
|
|
|
|
#include "wscript.h"
|
2010-07-27 15:51:18 +02:00
|
|
|
|
|
|
|
#include <wine/debug.h>
|
2010-07-27 15:52:05 +02:00
|
|
|
#include <wine/unicode.h>
|
2010-07-27 15:51:18 +02:00
|
|
|
|
2012-08-13 11:10:21 +02:00
|
|
|
#ifdef _WIN64
|
|
|
|
|
|
|
|
#define IActiveScriptParse_Release IActiveScriptParse64_Release
|
|
|
|
#define IActiveScriptParse_InitNew IActiveScriptParse64_InitNew
|
|
|
|
#define IActiveScriptParse_ParseScriptText IActiveScriptParse64_ParseScriptText
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define IActiveScriptParse_Release IActiveScriptParse32_Release
|
|
|
|
#define IActiveScriptParse_InitNew IActiveScriptParse32_InitNew
|
|
|
|
#define IActiveScriptParse_ParseScriptText IActiveScriptParse32_ParseScriptText
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-07-27 15:51:18 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(wscript);
|
|
|
|
|
2010-07-29 14:58:38 +02:00
|
|
|
static const WCHAR wscriptW[] = {'W','S','c','r','i','p','t',0};
|
|
|
|
static const WCHAR wshW[] = {'W','S','H',0};
|
2011-07-20 21:47:38 +02:00
|
|
|
WCHAR scriptFullName[MAX_PATH];
|
2010-07-29 14:58:38 +02:00
|
|
|
|
2010-07-30 14:01:55 +02:00
|
|
|
ITypeInfo *host_ti;
|
2011-08-23 15:15:48 +02:00
|
|
|
ITypeInfo *arguments_ti;
|
2010-07-30 14:01:55 +02:00
|
|
|
|
2010-07-27 15:52:17 +02:00
|
|
|
static HRESULT WINAPI ActiveScriptSite_QueryInterface(IActiveScriptSite *iface,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
if(IsEqualGUID(riid, &IID_IUnknown)) {
|
|
|
|
WINE_TRACE("(IID_IUnknown %p)\n", ppv);
|
|
|
|
*ppv = iface;
|
|
|
|
}else if(IsEqualGUID(riid, &IID_IActiveScriptSite)) {
|
|
|
|
WINE_TRACE("(IID_IActiveScriptSite %p)\n", ppv);
|
|
|
|
*ppv = iface;
|
|
|
|
}else {
|
|
|
|
*ppv = NULL;
|
|
|
|
WINE_TRACE("(%s %p)\n", wine_dbgstr_guid(riid), ppv);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI ActiveScriptSite_AddRef(IActiveScriptSite *iface)
|
|
|
|
{
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI ActiveScriptSite_Release(IActiveScriptSite *iface)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_GetLCID(IActiveScriptSite *iface, LCID *plcid)
|
|
|
|
{
|
|
|
|
WINE_TRACE("()\n");
|
|
|
|
|
|
|
|
*plcid = GetUserDefaultLCID();
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_GetItemInfo(IActiveScriptSite *iface,
|
|
|
|
LPCOLESTR pstrName, DWORD dwReturnMask, IUnknown **ppunkItem, ITypeInfo **ppti)
|
|
|
|
{
|
2010-07-29 14:58:38 +02:00
|
|
|
WINE_TRACE("(%s %x %p %p)\n", wine_dbgstr_w(pstrName), dwReturnMask, ppunkItem, ppti);
|
|
|
|
|
|
|
|
if(strcmpW(pstrName, wshW) && strcmpW(pstrName, wscriptW))
|
|
|
|
return E_FAIL;
|
|
|
|
|
|
|
|
if(dwReturnMask & SCRIPTINFO_ITYPEINFO) {
|
2010-07-30 14:01:55 +02:00
|
|
|
ITypeInfo_AddRef(host_ti);
|
|
|
|
*ppti = host_ti;
|
2010-07-29 14:58:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if(dwReturnMask & SCRIPTINFO_IUNKNOWN) {
|
|
|
|
IHost_AddRef(&host_obj);
|
|
|
|
*ppunkItem = (IUnknown*)&host_obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
return S_OK;
|
2010-07-27 15:52:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_GetDocVersionString(IActiveScriptSite *iface,
|
|
|
|
BSTR *pbstrVersion)
|
|
|
|
{
|
|
|
|
WINE_FIXME("()\n");
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_OnScriptTerminate(IActiveScriptSite *iface,
|
|
|
|
const VARIANT *pvarResult, const EXCEPINFO *pexcepinfo)
|
|
|
|
{
|
|
|
|
WINE_FIXME("()\n");
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_OnStateChange(IActiveScriptSite *iface,
|
|
|
|
SCRIPTSTATE ssScriptState)
|
|
|
|
{
|
|
|
|
WINE_TRACE("(%x)\n", ssScriptState);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_OnScriptError(IActiveScriptSite *iface,
|
|
|
|
IActiveScriptError *pscripterror)
|
|
|
|
{
|
|
|
|
WINE_FIXME("()\n");
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_OnEnterScript(IActiveScriptSite *iface)
|
|
|
|
{
|
|
|
|
WINE_TRACE("()\n");
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI ActiveScriptSite_OnLeaveScript(IActiveScriptSite *iface)
|
|
|
|
{
|
|
|
|
WINE_TRACE("()\n");
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static IActiveScriptSiteVtbl ActiveScriptSiteVtbl = {
|
|
|
|
ActiveScriptSite_QueryInterface,
|
|
|
|
ActiveScriptSite_AddRef,
|
|
|
|
ActiveScriptSite_Release,
|
|
|
|
ActiveScriptSite_GetLCID,
|
|
|
|
ActiveScriptSite_GetItemInfo,
|
|
|
|
ActiveScriptSite_GetDocVersionString,
|
|
|
|
ActiveScriptSite_OnScriptTerminate,
|
|
|
|
ActiveScriptSite_OnStateChange,
|
|
|
|
ActiveScriptSite_OnScriptError,
|
|
|
|
ActiveScriptSite_OnEnterScript,
|
|
|
|
ActiveScriptSite_OnLeaveScript
|
|
|
|
};
|
|
|
|
|
|
|
|
IActiveScriptSite script_site = { &ActiveScriptSiteVtbl };
|
|
|
|
|
2010-07-30 14:01:55 +02:00
|
|
|
static BOOL load_typelib(void)
|
|
|
|
{
|
|
|
|
ITypeLib *typelib;
|
|
|
|
HRESULT hres;
|
|
|
|
|
|
|
|
static const WCHAR wscript_exeW[] = {'w','s','c','r','i','p','t','.','e','x','e',0};
|
|
|
|
|
|
|
|
hres = LoadTypeLib(wscript_exeW, &typelib);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
hres = ITypeLib_GetTypeInfoOfGuid(typelib, &IID_IHost, &host_ti);
|
2011-08-23 15:15:48 +02:00
|
|
|
if(SUCCEEDED(hres))
|
|
|
|
hres = ITypeLib_GetTypeInfoOfGuid(typelib, &IID_IArguments2, &arguments_ti);
|
2010-07-30 14:01:55 +02:00
|
|
|
|
|
|
|
ITypeLib_Release(typelib);
|
|
|
|
return SUCCEEDED(hres);
|
|
|
|
}
|
|
|
|
|
2010-07-27 15:52:05 +02:00
|
|
|
static BOOL get_engine_clsid(const WCHAR *ext, CLSID *clsid)
|
|
|
|
{
|
|
|
|
WCHAR fileid[64], progid[64];
|
|
|
|
DWORD res;
|
|
|
|
LONG size;
|
|
|
|
HKEY hkey;
|
|
|
|
HRESULT hres;
|
|
|
|
|
|
|
|
static const WCHAR script_engineW[] =
|
|
|
|
{'\\','S','c','r','i','p','t','E','n','g','i','n','e',0};
|
|
|
|
|
|
|
|
res = RegOpenKeyW(HKEY_CLASSES_ROOT, ext, &hkey);
|
|
|
|
if(res != ERROR_SUCCESS)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
size = sizeof(fileid)/sizeof(WCHAR);
|
|
|
|
res = RegQueryValueW(hkey, NULL, fileid, &size);
|
|
|
|
RegCloseKey(hkey);
|
|
|
|
if(res != ERROR_SUCCESS)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
WINE_TRACE("fileid is %s\n", wine_dbgstr_w(fileid));
|
|
|
|
|
|
|
|
strcatW(fileid, script_engineW);
|
|
|
|
res = RegOpenKeyW(HKEY_CLASSES_ROOT, fileid, &hkey);
|
|
|
|
if(res != ERROR_SUCCESS)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
size = sizeof(progid)/sizeof(WCHAR);
|
|
|
|
res = RegQueryValueW(hkey, NULL, progid, &size);
|
|
|
|
RegCloseKey(hkey);
|
|
|
|
if(res != ERROR_SUCCESS)
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
WINE_TRACE("ProgID is %s\n", wine_dbgstr_w(progid));
|
|
|
|
|
|
|
|
hres = CLSIDFromProgID(progid, clsid);
|
|
|
|
return SUCCEEDED(hres);
|
|
|
|
}
|
|
|
|
|
2010-07-27 15:52:17 +02:00
|
|
|
static HRESULT create_engine(CLSID *clsid, IActiveScript **script_ret,
|
|
|
|
IActiveScriptParse **parser)
|
|
|
|
{
|
|
|
|
IActiveScript *script;
|
|
|
|
IUnknown *unk;
|
|
|
|
HRESULT hres;
|
|
|
|
|
|
|
|
hres = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
|
|
|
|
&IID_IUnknown, (void**)&unk);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
hres = IUnknown_QueryInterface(unk, &IID_IActiveScript, (void**)&script);
|
|
|
|
IUnknown_Release(unk);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
hres = IActiveScript_QueryInterface(script, &IID_IActiveScriptParse, (void**)parser);
|
|
|
|
if(FAILED(hres)) {
|
|
|
|
IActiveScript_Release(script);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
*script_ret = script;
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT init_engine(IActiveScript *script, IActiveScriptParse *parser)
|
|
|
|
{
|
|
|
|
HRESULT hres;
|
|
|
|
|
2010-07-30 14:01:55 +02:00
|
|
|
if(!load_typelib())
|
|
|
|
return FALSE;
|
|
|
|
|
2010-07-27 15:52:17 +02:00
|
|
|
hres = IActiveScript_SetScriptSite(script, &script_site);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
2012-08-13 11:10:21 +02:00
|
|
|
hres = IActiveScriptParse_InitNew(parser);
|
2010-07-27 15:52:17 +02:00
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
hres = IActiveScript_AddNamedItem(script, wscriptW, SCRIPTITEM_ISVISIBLE);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
hres = IActiveScript_AddNamedItem(script, wshW, SCRIPTITEM_ISVISIBLE);
|
|
|
|
if(FAILED(hres))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
hres = IActiveScript_SetScriptState(script, SCRIPTSTATE_INITIALIZED);
|
|
|
|
return SUCCEEDED(hres);
|
|
|
|
}
|
|
|
|
|
2010-07-27 15:52:30 +02:00
|
|
|
static BSTR get_script_str(const WCHAR *filename)
|
|
|
|
{
|
|
|
|
const char *file_map;
|
|
|
|
HANDLE file, map;
|
|
|
|
DWORD size, len;
|
|
|
|
BSTR ret;
|
|
|
|
|
|
|
|
file = CreateFileW(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY, NULL);
|
|
|
|
if(file == INVALID_HANDLE_VALUE)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
size = GetFileSize(file, NULL);
|
|
|
|
map = CreateFileMappingW(file, NULL, PAGE_READONLY, 0, 0, NULL);
|
|
|
|
CloseHandle(file);
|
|
|
|
if(map == INVALID_HANDLE_VALUE)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
file_map = MapViewOfFile(map, FILE_MAP_READ, 0, 0, 0);
|
|
|
|
CloseHandle(map);
|
|
|
|
if(!file_map)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
len = MultiByteToWideChar(CP_ACP, 0, file_map, size, NULL, 0);
|
|
|
|
ret = SysAllocStringLen(NULL, len);
|
|
|
|
MultiByteToWideChar(CP_ACP, 0, file_map, size, ret, len);
|
|
|
|
|
|
|
|
UnmapViewOfFile(file_map);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void run_script(const WCHAR *filename, IActiveScript *script, IActiveScriptParse *parser)
|
|
|
|
{
|
|
|
|
BSTR text;
|
|
|
|
HRESULT hres;
|
|
|
|
|
|
|
|
text = get_script_str(filename);
|
|
|
|
if(!text) {
|
|
|
|
WINE_FIXME("Could not get script text\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-08-13 11:10:21 +02:00
|
|
|
hres = IActiveScriptParse_ParseScriptText(parser, text, NULL, NULL, NULL, 1, 1,
|
2010-07-27 15:52:30 +02:00
|
|
|
SCRIPTTEXT_HOSTMANAGESSOURCE|SCRIPTITEM_ISVISIBLE, NULL, NULL);
|
|
|
|
SysFreeString(text);
|
|
|
|
if(FAILED(hres)) {
|
|
|
|
WINE_FIXME("ParseScriptText failed: %08x\n", hres);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
hres = IActiveScript_SetScriptState(script, SCRIPTSTATE_STARTED);
|
|
|
|
if(FAILED(hres))
|
|
|
|
WINE_FIXME("SetScriptState failed: %08x\n", hres);
|
|
|
|
}
|
|
|
|
|
2011-08-23 15:16:08 +02:00
|
|
|
static BOOL set_host_properties(const WCHAR *prop)
|
|
|
|
{
|
2014-04-18 08:29:52 +02:00
|
|
|
static const WCHAR nologoW[] = {'n','o','l','o','g','o',0};
|
2011-08-23 15:16:08 +02:00
|
|
|
static const WCHAR iactive[] = {'i',0};
|
|
|
|
static const WCHAR batch[] = {'b',0};
|
|
|
|
|
|
|
|
if(*prop == '/') {
|
|
|
|
++prop;
|
|
|
|
if(*prop == '/')
|
|
|
|
++prop;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
++prop;
|
|
|
|
|
|
|
|
if(strcmpiW(prop, iactive) == 0)
|
|
|
|
wshInteractive = VARIANT_TRUE;
|
|
|
|
else if(strcmpiW(prop, batch) == 0)
|
|
|
|
wshInteractive = VARIANT_FALSE;
|
2014-04-18 08:29:52 +02:00
|
|
|
else if(strcmpiW(prop, nologoW) == 0)
|
|
|
|
WINE_FIXME("ignored %s switch\n", debugstr_w(nologoW));
|
2011-08-23 15:16:08 +02:00
|
|
|
else
|
2014-04-18 19:04:09 +02:00
|
|
|
{
|
|
|
|
WINE_FIXME("unsupported switch %s\n", debugstr_w(prop));
|
2011-08-23 15:16:08 +02:00
|
|
|
return FALSE;
|
2014-04-18 19:04:09 +02:00
|
|
|
}
|
2011-08-23 15:16:08 +02:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2010-07-27 15:51:18 +02:00
|
|
|
int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
|
|
|
|
{
|
2013-11-12 09:19:59 +01:00
|
|
|
WCHAR *ext, *filepart, *filename = NULL;
|
2010-07-27 15:52:17 +02:00
|
|
|
IActiveScriptParse *parser;
|
|
|
|
IActiveScript *script;
|
2010-08-20 14:57:37 +02:00
|
|
|
WCHAR **argv;
|
2010-07-27 15:52:05 +02:00
|
|
|
CLSID clsid;
|
2010-08-20 14:57:37 +02:00
|
|
|
int argc, i;
|
2011-07-20 21:47:38 +02:00
|
|
|
DWORD res;
|
2010-07-27 15:52:05 +02:00
|
|
|
|
2010-07-27 15:52:30 +02:00
|
|
|
WINE_TRACE("(%p %p %s %x)\n", hInst, hPrevInst, wine_dbgstr_w(cmdline), cmdshow);
|
2010-07-27 15:52:05 +02:00
|
|
|
|
2010-08-20 14:57:37 +02:00
|
|
|
argv = CommandLineToArgvW(cmdline, &argc);
|
|
|
|
if(!argv)
|
2010-07-27 15:52:05 +02:00
|
|
|
return 1;
|
|
|
|
|
2010-08-20 14:57:37 +02:00
|
|
|
for(i=0; i<argc; i++) {
|
|
|
|
if(*argv[i] == '/' || *argv[i] == '-') {
|
2011-08-23 15:16:08 +02:00
|
|
|
if(!set_host_properties(argv[i]))
|
|
|
|
return 1;
|
2010-08-20 14:57:37 +02:00
|
|
|
}else {
|
|
|
|
filename = argv[i];
|
2011-08-23 15:15:54 +02:00
|
|
|
argums = argv+i+1;
|
|
|
|
numOfArgs = argc-i-1;
|
2010-08-20 14:57:37 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!filename) {
|
|
|
|
WINE_FIXME("No file name specified\n");
|
|
|
|
return 1;
|
|
|
|
}
|
2013-11-12 09:19:59 +01:00
|
|
|
res = GetFullPathNameW(filename, sizeof(scriptFullName)/sizeof(WCHAR), scriptFullName, &filepart);
|
2011-07-20 21:47:38 +02:00
|
|
|
if(!res || res > sizeof(scriptFullName)/sizeof(WCHAR))
|
|
|
|
return 1;
|
2010-08-20 14:57:37 +02:00
|
|
|
|
2013-11-12 09:19:59 +01:00
|
|
|
ext = strrchrW(filepart, '.');
|
|
|
|
if(!ext || !get_engine_clsid(ext, &clsid)) {
|
2010-08-20 14:57:37 +02:00
|
|
|
WINE_FIXME("Could not find engine for %s\n", wine_dbgstr_w(ext));
|
2010-07-27 15:52:05 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2010-07-27 15:52:17 +02:00
|
|
|
CoInitialize(NULL);
|
|
|
|
|
|
|
|
if(!create_engine(&clsid, &script, &parser)) {
|
|
|
|
WINE_FIXME("Could not create script engine\n");
|
|
|
|
CoUninitialize();
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(init_engine(script, parser)) {
|
2010-08-20 14:57:37 +02:00
|
|
|
run_script(filename, script, parser);
|
2010-07-27 15:52:17 +02:00
|
|
|
IActiveScript_Close(script);
|
2010-07-30 14:01:55 +02:00
|
|
|
ITypeInfo_Release(host_ti);
|
2010-07-27 15:52:17 +02:00
|
|
|
}else {
|
|
|
|
WINE_FIXME("Script initialization failed\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
IActiveScript_Release(script);
|
2012-08-13 11:10:21 +02:00
|
|
|
IActiveScriptParse_Release(parser);
|
2010-07-27 15:52:17 +02:00
|
|
|
|
|
|
|
CoUninitialize();
|
|
|
|
|
2010-07-27 15:51:18 +02:00
|
|
|
return 0;
|
|
|
|
}
|