Commit 41eedc6d authored by Michał Ziętek's avatar Michał Ziętek Committed by Alexandre Julliard

wscript: Implemented Host_get_Version.

parent 2c2527e3
......@@ -30,6 +30,7 @@
#include <wine/debug.h>
static const WCHAR wshNameW[] = {'W','i','n','d','o','w','s',' ','S','c','r','i','p','t',' ','H','o','s','t',0};
static const WCHAR wshVersionW[] = {'5','.','8'};
WINE_DEFAULT_DEBUG_CHANNEL(wscript);
......@@ -159,8 +160,11 @@ static HRESULT WINAPI Host_get_Arguments(IHost *iface, IArguments2 **out_Argumen
static HRESULT WINAPI Host_get_Version(IHost *iface, BSTR *out_Version)
{
WINE_FIXME("(%p)\n", out_Version);
return E_NOTIMPL;
WINE_TRACE("(%p)\n", out_Version);
if(!(*out_Version = SysAllocString(wshVersionW)))
return E_OUTOFMEMORY;
return S_OK;
}
static HRESULT WINAPI Host_get_BuildVersion(IHost *iface, int *out_Build)
......
......@@ -26,5 +26,6 @@ ok(typeof(WScript) === "object", "typeof(WScript) = " + typeof(WScript));
ok(typeof(WSH) === "object", "typeof(WSH) = " + typeof(WSH));
ok(WScript === WSH, "WScript !== WSH");
ok(WScript.Name === "Windows Script Host", "WScript.Name = " + WScript.Name);
ok(typeof(WScript.Version) === "string", "typeof(WScript.Version) = " + typeof(WScript.Version));
winetest.reportSuccess();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment