quartz: Fix result in put_FullScreenMode().

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2024-06-10 10:54:08 +02:00 committed by Alexandre Julliard
parent 6fd8e30c69
commit 1d42cf1274
2 changed files with 4 additions and 1 deletions

View file

@ -2972,7 +2972,7 @@ static void test_control_delegation(void)
ok(val == OAFALSE, "Got fullscreen %lu\n", val);
hr = IVideoWindow_put_FullScreenMode(window, OAFALSE);
todo_wine ok(hr == S_FALSE, "Got hr %#lx.\n", hr);
ok(hr == S_FALSE, "Got hr %#lx.\n", hr);
hr = IFilterGraph2_RemoveFilter(graph, renderer);
ok(hr == S_OK, "Got hr %#lx.\n", hr);

View file

@ -291,6 +291,9 @@ static HRESULT WINAPI VideoWindow_put_FullScreenMode(IVideoWindow *iface, LONG f
FIXME("filter %p, fullscreen %ld.\n", filter, fullscreen);
if (fullscreen == filter->FullScreenMode)
return S_FALSE;
if (fullscreen)
{
filter->saved_style = GetWindowLongW(window, GWL_STYLE);