wscript: Implemented Host_get_BuildVersion.
This commit is contained in:
parent
82da77c0a6
commit
e244222c65
|
@ -29,6 +29,8 @@
|
||||||
|
|
||||||
#include <wine/debug.h>
|
#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 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'};
|
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)
|
static HRESULT WINAPI Host_get_BuildVersion(IHost *iface, int *out_Build)
|
||||||
{
|
{
|
||||||
WINE_FIXME("(%p)\n", out_Build);
|
WINE_TRACE("(%p)\n", out_Build);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
*out_Build = BUILDVERSION;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI Host_get_Timeout(IHost *iface, LONG *out_Timeout)
|
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 === WSH, "WScript !== WSH");
|
||||||
ok(WScript.Name === "Windows Script Host", "WScript.Name = " + WScript.Name);
|
ok(WScript.Name === "Windows Script Host", "WScript.Name = " + WScript.Name);
|
||||||
ok(typeof(WScript.Version) === "string", "typeof(WScript.Version) = " + typeof(WScript.Version));
|
ok(typeof(WScript.Version) === "string", "typeof(WScript.Version) = " + typeof(WScript.Version));
|
||||||
|
ok(typeof(WScript.BuildVersion) === "number", "typeof(WScript.BuldVersion) = " + typeof(WScript.BuldVersion));
|
||||||
|
|
||||||
winetest.reportSuccess();
|
winetest.reportSuccess();
|
||||||
|
|
Loading…
Reference in New Issue