d3d8/tests: Fix device tests on Windows 10.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2019-02-25 19:00:43 +01:00 committed by Alexandre Julliard
parent e4ca5dbec0
commit cf11ddfe41
1 changed files with 3 additions and 2 deletions

View File

@ -3049,8 +3049,9 @@ static void test_wndproc(void)
/* Remove the maximized state from the SYSCOMMAND test while we're not
* interfering with a device. */
ShowWindow(focus_window, SW_SHOWNORMAL);
filter_messages = focus_window;
/* On Windows 10 style change messages are delivered on device
* creation. */
device_desc.device_window = focus_window;
if (!(device = create_device(d3d8, focus_window, &device_desc)))
{
@ -3065,7 +3066,6 @@ static void test_wndproc(void)
SetForegroundWindow(GetDesktopWindow());
ok(!expect_messages->message, "Expected message %#x for window %#x, but didn't receive it.\n",
expect_messages->message, expect_messages->window);
ok(!windowposchanged_received, "Received WM_WINDOWPOSCHANGED but did not expect it.\n");
expect_messages = NULL;
/* The window is iconic even though no message was sent. */
@ -3121,6 +3121,7 @@ static void test_wndproc(void)
hr = IDirect3DDevice8_TestCooperativeLevel(device);
ok(hr == D3DERR_DEVICENOTRESET, "Got unexpected hr %#x.\n", hr);
filter_messages = NULL;
hr = reset_device(device, &device_desc);
ok(SUCCEEDED(hr), "Failed to reset device, hr %#x.\n", hr);