graphicscapture: Partially implement IGraphicsCaptureSessionStatics::IsSupported().

Needed to prevent VR games from crashing when the user attempts to capture the desktop.
This commit is contained in:
Mohamad Al-Jaf 2023-03-17 01:58:39 -04:00 committed by Alexandre Julliard
parent 872fbcebdc
commit 4e7cbb2d09
2 changed files with 5 additions and 3 deletions

View file

@ -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 =

View file

@ -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 );