Commit c5957eb9 authored by Jason Millard's avatar Jason Millard Committed by Alexandre Julliard

vbscript: Add missing stubs for GetLocale and SetLocale builtins.

parent 0692d07f
......@@ -2178,6 +2178,12 @@ static HRESULT Global_Second(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
return FAILED(hres) ? hres : return_short(res, st.wSecond);
}
static HRESULT Global_SetLocale(BuiltinDisp *This, VARIANT *args, unsigned args_cnt, VARIANT *res)
{
FIXME("\n");
return E_NOTIMPL;
}
static HRESULT Global_DateValue(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
{
FIXME("\n");
......@@ -3048,6 +3054,12 @@ static HRESULT Global_FormatPercent(BuiltinDisp *This, VARIANT *args, unsigned a
return return_bstr(res, str);
}
static HRESULT Global_GetLocale(BuiltinDisp *This, VARIANT *args, unsigned args_cnt, VARIANT *res)
{
FIXME("\n");
return E_NOTIMPL;
}
static HRESULT Global_FormatDateTime(BuiltinDisp *This, VARIANT *args, unsigned args_cnt, VARIANT *res)
{
int format = 0;
......@@ -3270,6 +3282,7 @@ static const builtin_prop_t global_props[] = {
{L"FormatDateTime", Global_FormatDateTime, 0, 1, 2},
{L"FormatNumber", Global_FormatNumber, 0, 1, 5},
{L"FormatPercent", Global_FormatPercent, 0, 1, 5},
{L"GetLocale", Global_GetLocale, 0, 0},
{L"GetObject", Global_GetObject, 0, 0, 2},
{L"GetRef", Global_GetRef, 0, 1},
{L"Hex", Global_Hex, 0, 1},
......@@ -3316,6 +3329,7 @@ static const builtin_prop_t global_props[] = {
{L"ScriptEngineMajorVersion", Global_ScriptEngineMajorVersion, 0, 0},
{L"ScriptEngineMinorVersion", Global_ScriptEngineMinorVersion, 0, 0},
{L"Second", Global_Second, 0, 1},
{L"SetLocale", Global_SetLocale, 0, 0, 1},
{L"Sgn", Global_Sgn, 0, 1},
{L"Sin", Global_Sin, 0, 1},
{L"Space", Global_Space, 0, 1},
......
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