1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-10 04:46:10 +00:00

windows.perception.stub: Implement ISpatialSurfaceObserverStatics2::IsSupported().

Needed by the VR games Forewarned and Überlaüfer.
This commit is contained in:
Mohamad Al-Jaf 2022-12-18 20:29:37 -05:00 committed by Alexandre Julliard
parent 4f9a79bcea
commit 50f5f9af1c
2 changed files with 6 additions and 4 deletions

View File

@ -149,8 +149,10 @@ DEFINE_IINSPECTABLE( observer_statics2, ISpatialSurfaceObserverStatics2, struct
static HRESULT WINAPI observer_statics2_IsSupported( ISpatialSurfaceObserverStatics2 *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 const struct ISpatialSurfaceObserverStatics2Vtbl observer_statics2_vtbl =

View File

@ -77,8 +77,8 @@ static void test_ObserverStatics(void)
value = TRUE;
hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value );
todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr );
todo_wine ok( !value, "got %d.\n", value );
ok( hr == S_OK, "got hr %#lx.\n", hr );
ok( !value, "got %d.\n", value );
ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 );
ok( ref == 2, "got ref %ld.\n", ref );