mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-27 07:12:04 +00:00
windows.perception.stub: Implement ISpatialSurfaceObserverStatics2::IsSupported().
Needed by the VR games Forewarned and Überlaüfer.
This commit is contained in:
parent
4f9a79bcea
commit
50f5f9af1c
|
@ -149,8 +149,10 @@ DEFINE_IINSPECTABLE( observer_statics2, ISpatialSurfaceObserverStatics2, struct
|
||||||
|
|
||||||
static HRESULT WINAPI observer_statics2_IsSupported( ISpatialSurfaceObserverStatics2 *iface, boolean *value )
|
static HRESULT WINAPI observer_statics2_IsSupported( ISpatialSurfaceObserverStatics2 *iface, boolean *value )
|
||||||
{
|
{
|
||||||
FIXME( "iface %p, value %p stub!\n", iface, value );
|
TRACE( "iface %p, value %p.\n", iface, value );
|
||||||
return E_NOTIMPL;
|
|
||||||
|
*value = FALSE;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct ISpatialSurfaceObserverStatics2Vtbl observer_statics2_vtbl =
|
static const struct ISpatialSurfaceObserverStatics2Vtbl observer_statics2_vtbl =
|
||||||
|
|
|
@ -77,8 +77,8 @@ static void test_ObserverStatics(void)
|
||||||
|
|
||||||
value = TRUE;
|
value = TRUE;
|
||||||
hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value );
|
hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value );
|
||||||
todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr );
|
ok( hr == S_OK, "got hr %#lx.\n", hr );
|
||||||
todo_wine ok( !value, "got %d.\n", value );
|
ok( !value, "got %d.\n", value );
|
||||||
|
|
||||||
ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 );
|
ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 );
|
||||||
ok( ref == 2, "got ref %ld.\n", ref );
|
ok( ref == 2, "got ref %ld.\n", ref );
|
||||||
|
|
Loading…
Reference in a new issue