wscript: Implemented Host_get_Application.

This commit is contained in:
Michał Ziętek 2011-08-23 15:16:19 +02:00 committed by Alexandre Julliard
parent 154578d75c
commit 559547f21e
2 changed files with 5 additions and 2 deletions

View File

@ -110,8 +110,10 @@ static HRESULT WINAPI Host_get_Name(IHost *iface, BSTR *out_Name)
static HRESULT WINAPI Host_get_Application(IHost *iface, IDispatch **out_Dispatch)
{
WINE_FIXME("(%p)\n", out_Dispatch);
return E_NOTIMPL;
WINE_TRACE("(%p)\n", out_Dispatch);
*out_Dispatch = (IDispatch*)&host_obj;
return S_OK;
}
static HRESULT WINAPI Host_get_FullName(IHost *iface, BSTR *out_Path)

View File

@ -47,5 +47,6 @@ WScript.Interactive = false;
ok(WScript.Interactive === false, "WScript.Interactive = " + WScript.Interactive);
WScript.Interactive = true;
ok(WScript.Interactive === true, "WScript.Interactive = " + WScript.Interactive);
ok(WScript.Application === WScript, "WScript.Application = " + WScript.Application);
winetest.reportSuccess();