Module: wine Branch: master Commit: 18453129be33fd50d3050dec722df054a181017a URL: https://gitlab.winehq.org/wine/wine/-/commit/18453129be33fd50d3050dec722df05...
Author: Mohamad Al-Jaf mohamadaljaf@gmail.com Date: Fri Mar 10 20:32:30 2023 -0500
windows.perception.stub: Implement IHolographicSpaceStatics2::get_IsAvailable().
Needed by the VR game Desperate: Vladivostok.
---
dlls/windows.perception.stub/holographicspace.c | 6 ++++-- dlls/windows.perception.stub/tests/perception.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/windows.perception.stub/holographicspace.c b/dlls/windows.perception.stub/holographicspace.c index c4ecd798d3e..a99932f7889 100644 --- a/dlls/windows.perception.stub/holographicspace.c +++ b/dlls/windows.perception.stub/holographicspace.c @@ -127,8 +127,10 @@ static HRESULT WINAPI holographicspace_statics2_get_IsSupported( IHolographicSpa
static HRESULT WINAPI holographicspace_statics2_get_IsAvailable( IHolographicSpaceStatics2 *iface, boolean *value ) { - FIXME( "iface %p, value %p stub!\n", iface, value ); - return E_NOTIMPL; + TRACE( "iface %p, value %p\n", iface, value ); + + *value = FALSE; + return S_OK; }
static HRESULT WINAPI holographicspace_statics2_add_IsAvailableChanged( IHolographicSpaceStatics2 *iface, IEventHandler_IInspectable *handler, diff --git a/dlls/windows.perception.stub/tests/perception.c b/dlls/windows.perception.stub/tests/perception.c index 770f21c3fd7..2fb526ed3d5 100644 --- a/dlls/windows.perception.stub/tests/perception.c +++ b/dlls/windows.perception.stub/tests/perception.c @@ -137,8 +137,8 @@ static void test_HolographicSpaceStatics(void)
value = 2; hr = IHolographicSpaceStatics2_get_IsAvailable( holographicspace_statics2, &value ); - todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr ); - todo_wine ok( value == FALSE, "got %d.\n", value ); + ok( hr == S_OK, "got hr %#lx.\n", hr ); + ok( value == FALSE, "got %d.\n", value );
ref = IHolographicSpaceStatics2_Release( holographicspace_statics2 ); ok( ref == 2, "got ref %ld.\n", ref );