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

wscript: Implemented Host_get_BuildVersion.

parent 82da77c0
......@@ -29,6 +29,8 @@
#include <wine/debug.h>
#define BUILDVERSION 16535
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'};
......@@ -169,8 +171,10 @@ static HRESULT WINAPI Host_get_Version(IHost *iface, BSTR *out_Version)
static HRESULT WINAPI Host_get_BuildVersion(IHost *iface, int *out_Build)
{
WINE_FIXME("(%p)\n", out_Build);
return E_NOTIMPL;
WINE_TRACE("(%p)\n", out_Build);
*out_Build = BUILDVERSION;
return S_OK;
}
static HRESULT WINAPI Host_get_Timeout(IHost *iface, LONG *out_Timeout)
......
......@@ -27,5 +27,6 @@ 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));
ok(typeof(WScript.BuildVersion) === "number", "typeof(WScript.BuldVersion) = " + typeof(WScript.BuldVersion));
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