vbscript: Inplemented ScriptEngineBuildVersion.
This commit is contained in:
parent
4da0bcc227
commit
f3f0972ddb
|
@ -1684,8 +1684,16 @@ static HRESULT Global_ScriptEngineMinorVersion(vbdisp_t *This, VARIANT *arg, uns
|
|||
|
||||
static HRESULT Global_ScriptEngineBuildVersion(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("%s\n", debugstr_variant(arg));
|
||||
|
||||
assert(args_cnt == 0);
|
||||
|
||||
if(res) {
|
||||
V_VT(res) = VT_I4;
|
||||
V_I4(res) = VBSCRIPT_BUILD_VERSION;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT Global_FormatNumber(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
|
|
|
@ -987,4 +987,6 @@ Call testAbsError(-4, 0, 0)
|
|||
Call ok(ScriptEngine = "VBScript", "Is scriptengine not VBScript?")
|
||||
Call ok(getVT(ScriptEngine) = "VT_BSTR", "getVT(ScriptEngine) = " & getVT(ScriptEngine))
|
||||
|
||||
Call ok(getVT(ScriptEngineBuildVersion) = "VT_I4", "getVT(ScriptEngineBuildVersion) = " & getVT(ScriptEngineBuildVersion))
|
||||
|
||||
Call reportSuccess()
|
||||
|
|
|
@ -461,3 +461,5 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define VBSCRIPT_BUILD_VERSION 16978
|
||||
|
|
Loading…
Reference in New Issue