quartz: Return E_POINTER from IVideoWindow::get_Visible() if "visible" is NULL.

Signed-off-by: Pengpeng Dong <dongpengpeng@uniontech.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Pengpeng Dong 2020-09-09 10:07:18 -05:00 committed by Alexandre Julliard
parent f92f363bbd
commit 4765c5ffe2
2 changed files with 6 additions and 0 deletions

View file

@ -2257,6 +2257,9 @@ static void test_video_window(void)
hr = IBaseFilter_QueryInterface(filter, &IID_IVideoWindow, (void **)&window);
ok(hr == S_OK, "Got hr %#x.\n", hr);
hr = IVideoWindow_get_Visible(window, NULL);
ok(hr == E_POINTER, "Got hr %#x.\n", hr);
hr = IVideoWindow_get_Caption(window, &caption);
todo_wine ok(hr == VFW_E_NOT_CONNECTED, "Got hr %#x.\n", hr);

View file

@ -334,6 +334,9 @@ HRESULT WINAPI BaseControlWindowImpl_get_Visible(IVideoWindow *iface, LONG *visi
TRACE("window %p, visible %p.\n", window, visible);
if (!visible)
return E_POINTER;
*visible = IsWindowVisible(window->hwnd) ? OATRUE : OAFALSE;
return S_OK;
}