strmbase: IVideoWindow::SetWindowForeground takes OATRUE, not TRUE.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-10-07 18:55:44 -05:00 committed by Alexandre Julliard
parent 9cb8fd4e6b
commit ed1c18e8c9
2 changed files with 10 additions and 10 deletions

View File

@ -1609,17 +1609,17 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr = IVideoWindow_put_WindowState(window, SW_SHOWNA);
ok(hr == S_OK, "Got hr %#x.\n", hr);
hr = IVideoWindow_SetWindowForeground(window, TRUE);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
SetWindowPos(our_hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
hr = IVideoWindow_SetWindowForeground(window, OATRUE);
todo_wine
{
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(GetActiveWindow() == hwnd, "Got active window %p.\n", GetActiveWindow());
ok(GetFocus() == hwnd, "Got focus window %p.\n", GetFocus());
ok(GetForegroundWindow() == hwnd, "Got foreground window %p.\n", GetForegroundWindow());
top = get_top_window();
ok(top == hwnd, "Got top window %p.\n", top);
}
ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(GetActiveWindow() == hwnd, "Got active window %p.\n", GetActiveWindow());
ok(GetFocus() == hwnd, "Got focus window %p.\n", GetFocus());
ok(GetForegroundWindow() == hwnd, "Got foreground window %p.\n", GetForegroundWindow());
top = get_top_window();
todo_wine ok(top == hwnd, "Got top window %p.\n", top);
hr = IVideoWindow_SetWindowForeground(window, OAFALSE);
ok(hr == S_OK, "Got hr %#x.\n", hr);

View File

@ -652,7 +652,7 @@ HRESULT WINAPI BaseControlWindowImpl_SetWindowForeground(IVideoWindow *iface, LO
TRACE("(%p/%p)->(%d)\n", This, iface, Focus);
if ((Focus != FALSE) && (Focus != TRUE))
if ((Focus != OAFALSE) && (Focus != OATRUE))
return E_INVALIDARG;
hr = IPin_ConnectedTo(&This->pPin->IPin_iface, &pPin);