Commit f3f0972d authored by Shuai Meng's avatar Shuai Meng Committed by Alexandre Julliard

vbscript: Inplemented ScriptEngineBuildVersion.

parent 4da0bcc2
...@@ -1684,8 +1684,16 @@ static HRESULT Global_ScriptEngineMinorVersion(vbdisp_t *This, VARIANT *arg, uns ...@@ -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) static HRESULT Global_ScriptEngineBuildVersion(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
{ {
FIXME("\n"); TRACE("%s\n", debugstr_variant(arg));
return E_NOTIMPL;
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) static HRESULT Global_FormatNumber(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
......
...@@ -987,4 +987,6 @@ Call testAbsError(-4, 0, 0) ...@@ -987,4 +987,6 @@ Call testAbsError(-4, 0, 0)
Call ok(ScriptEngine = "VBScript", "Is scriptengine not VBScript?") Call ok(ScriptEngine = "VBScript", "Is scriptengine not VBScript?")
Call ok(getVT(ScriptEngine) = "VT_BSTR", "getVT(ScriptEngine) = " & getVT(ScriptEngine)) Call ok(getVT(ScriptEngine) = "VT_BSTR", "getVT(ScriptEngine) = " & getVT(ScriptEngine))
Call ok(getVT(ScriptEngineBuildVersion) = "VT_I4", "getVT(ScriptEngineBuildVersion) = " & getVT(ScriptEngineBuildVersion))
Call reportSuccess() Call reportSuccess()
...@@ -461,3 +461,5 @@ static inline LPWSTR heap_strdupW(LPCWSTR str) ...@@ -461,3 +461,5 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
return ret; return ret;
} }
#define VBSCRIPT_BUILD_VERSION 16978
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