Commit 6c7db4ba authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

windows.globalization: Fake empty IGlobalizationPreferencesStatics properties.

parent 6302df9d
...@@ -375,21 +375,21 @@ static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Calendars( ...@@ -375,21 +375,21 @@ static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Calendars(
IGlobalizationPreferencesStatics *iface, IVectorView_HSTRING **out) IGlobalizationPreferencesStatics *iface, IVectorView_HSTRING **out)
{ {
FIXME("iface %p, out %p stub!\n", iface, out); FIXME("iface %p, out %p stub!\n", iface, out);
return E_NOTIMPL; return hstring_vector_create(NULL, 0, out);
} }
static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Clocks( static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Clocks(
IGlobalizationPreferencesStatics *iface, IVectorView_HSTRING **out) IGlobalizationPreferencesStatics *iface, IVectorView_HSTRING **out)
{ {
FIXME("iface %p, out %p stub!\n", iface, out); FIXME("iface %p, out %p stub!\n", iface, out);
return E_NOTIMPL; return hstring_vector_create(NULL, 0, out);
} }
static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Currencies( static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Currencies(
IGlobalizationPreferencesStatics *iface, IVectorView_HSTRING **out) IGlobalizationPreferencesStatics *iface, IVectorView_HSTRING **out)
{ {
FIXME("iface %p, out %p stub!\n", iface, out); FIXME("iface %p, out %p stub!\n", iface, out);
return E_NOTIMPL; return hstring_vector_create(NULL, 0, out);
} }
static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Languages( static HRESULT STDMETHODCALLTYPE globalization_preferences_get_Languages(
......
...@@ -47,7 +47,7 @@ static void test_GlobalizationPreferences(void) ...@@ -47,7 +47,7 @@ static void test_GlobalizationPreferences(void)
static const WCHAR *class_name = L"Windows.System.UserProfile.GlobalizationPreferences"; static const WCHAR *class_name = L"Windows.System.UserProfile.GlobalizationPreferences";
IGlobalizationPreferencesStatics *preferences_statics = NULL; IGlobalizationPreferencesStatics *preferences_statics = NULL;
IVectorView_HSTRING *languages = NULL; IVectorView_HSTRING *languages = NULL, *calendars, *clocks, *currencies;
IActivationFactory *factory = NULL; IActivationFactory *factory = NULL;
IInspectable *inspectable = NULL, *tmp_inspectable = NULL; IInspectable *inspectable = NULL, *tmp_inspectable = NULL;
IAgileObject *agile_object = NULL, *tmp_agile_object = NULL; IAgileObject *agile_object = NULL, *tmp_agile_object = NULL;
...@@ -178,6 +178,40 @@ static void test_GlobalizationPreferences(void) ...@@ -178,6 +178,40 @@ static void test_GlobalizationPreferences(void)
IVectorView_HSTRING_Release(languages); IVectorView_HSTRING_Release(languages);
hr = IGlobalizationPreferencesStatics_get_Calendars(preferences_statics, &calendars);
ok(hr == S_OK, "IGlobalizationPreferencesStatics_get_Calendars failed, hr %#x\n", hr);
size = 0xdeadbeef;
hr = IVectorView_HSTRING_get_Size(calendars, &size);
ok(hr == S_OK, "IVectorView_HSTRING_get_Size failed, hr %#x\n", hr);
todo_wine ok(size != 0 && size != 0xdeadbeef, "IVectorView_HSTRING_get_Size returned %u\n", size);
IVectorView_HSTRING_Release(calendars);
hr = IGlobalizationPreferencesStatics_get_Clocks(preferences_statics, &clocks);
ok(hr == S_OK, "IGlobalizationPreferencesStatics_get_Clocks failed, hr %#x\n", hr);
size = 0xdeadbeef;
hr = IVectorView_HSTRING_get_Size(clocks, &size);
ok(hr == S_OK, "IVectorView_HSTRING_get_Size failed, hr %#x\n", hr);
todo_wine ok(size != 0 && size != 0xdeadbeef, "IVectorView_HSTRING_get_Size returned %u\n", size);
IVectorView_HSTRING_Release(clocks);
hr = IGlobalizationPreferencesStatics_get_Currencies(preferences_statics, &currencies);
ok(hr == S_OK, "IGlobalizationPreferencesStatics_get_Currencies failed, hr %#x\n", hr);
size = 0xdeadbeef;
hr = IVectorView_HSTRING_get_Size(currencies, &size);
ok(hr == S_OK, "IVectorView_HSTRING_get_Size failed, hr %#x\n", hr);
todo_wine ok(size != 0 && size != 0xdeadbeef, "IVectorView_HSTRING_get_Size returned %u\n", size);
IVectorView_HSTRING_Release(currencies);
IGlobalizationPreferencesStatics_Release(preferences_statics); IGlobalizationPreferencesStatics_Release(preferences_statics);
IAgileObject_Release(agile_object); IAgileObject_Release(agile_object);
......
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