From 7aa9d6970ca1c04a80137f4189748661456e608d Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Sun, 2 Feb 2020 14:45:52 +0100 Subject: [PATCH] ddraw/tests: Reverse cleanup order in test_coop_level_threaded(). Signed-off-by: Sven Baars Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/ddraw/tests/ddraw1.c | 2 +- dlls/ddraw/tests/ddraw2.c | 2 +- dlls/ddraw/tests/ddraw4.c | 2 +- dlls/ddraw/tests/ddraw7.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c index 16c0cfb4e5b..45a24e3ffbd 100644 --- a/dlls/ddraw/tests/ddraw1.c +++ b/dlls/ddraw/tests/ddraw1.c @@ -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) diff --git a/dlls/ddraw/tests/ddraw2.c b/dlls/ddraw/tests/ddraw2.c index f0ae458d851..3fccd02f1ea 100644 --- a/dlls/ddraw/tests/ddraw2.c +++ b/dlls/ddraw/tests/ddraw2.c @@ -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) diff --git a/dlls/ddraw/tests/ddraw4.c b/dlls/ddraw/tests/ddraw4.c index b6cb97c3c98..d97834e5425 100644 --- a/dlls/ddraw/tests/ddraw4.c +++ b/dlls/ddraw/tests/ddraw4.c @@ -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) diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c index 0afbe76b6c6..bbc61087caf 100644 --- a/dlls/ddraw/tests/ddraw7.c +++ b/dlls/ddraw/tests/ddraw7.c @@ -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)