Commit 4e7cbb2d authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

graphicscapture: Partially implement IGraphicsCaptureSessionStatics::IsSupported().

Needed to prevent VR games from crashing when the user attempts to capture the desktop.
parent 872fbceb
......@@ -119,8 +119,10 @@ DEFINE_IINSPECTABLE( session_statics, IGraphicsCaptureSessionStatics, struct ses
static HRESULT WINAPI session_statics_IsSupported( IGraphicsCaptureSessionStatics *iface, boolean *result )
{
FIXME( "iface %p, result %p stub!\n", iface, result );
return E_NOTIMPL;
TRACE( "iface %p, result %p\n", iface, result );
*result = FALSE;
return S_OK;
}
static const struct IGraphicsCaptureSessionStaticsVtbl session_statics_vtbl =
......
......@@ -75,7 +75,7 @@ static void test_GraphicsCaptureSessionStatics(void)
res = 2;
hr = IGraphicsCaptureSessionStatics_IsSupported( session_statics, &res );
todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr );
ok( hr == S_OK, "got hr %#lx.\n", hr );
todo_wine ok( res == TRUE, "got %d.\n", res );
ref = IGraphicsCaptureSessionStatics_Release( session_statics );
......
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