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:
parent
4128e457a9
commit
7aa9d6970c
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue