ddraw/tests: Reverse cleanup order in test_coop_level_threaded().

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2020-02-02 14:45:52 +01:00 committed by Alexandre Julliard
parent 4128e457a9
commit 7aa9d6970c
4 changed files with 4 additions and 4 deletions

View File

@ -1254,8 +1254,8 @@ static void test_coop_level_threaded(void)
hr = IDirectDraw_SetCooperativeLevel(ddraw, p.window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
IDirectDraw_Release(ddraw);
destroy_window_thread(&p);
IDirectDraw_Release(ddraw);
}
static ULONG get_refcount(IUnknown *test_iface)

View File

@ -1142,8 +1142,8 @@ static void test_coop_level_threaded(void)
hr = IDirectDraw2_SetCooperativeLevel(ddraw, p.window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
IDirectDraw2_Release(ddraw);
destroy_window_thread(&p);
IDirectDraw2_Release(ddraw);
}
static void test_depth_blit(void)

View File

@ -1314,8 +1314,8 @@ static void test_coop_level_threaded(void)
hr = IDirectDraw4_SetCooperativeLevel(ddraw, p.window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
IDirectDraw4_Release(ddraw);
destroy_window_thread(&p);
IDirectDraw4_Release(ddraw);
}
static void test_depth_blit(void)

View File

@ -1268,8 +1268,8 @@ static void test_coop_level_threaded(void)
hr = IDirectDraw7_SetCooperativeLevel(ddraw, p.window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
IDirectDraw7_Release(ddraw);
destroy_window_thread(&p);
IDirectDraw7_Release(ddraw);
}
static void test_depth_blit(void)