mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
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:
parent
872fbcebdc
commit
4e7cbb2d09
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue