Stefan Dösinger : d3d8: Destroy the window after the visual test.

Alexandre Julliard julliard at winehq.org
Tue Nov 20 10:54:54 CST 2007


Module: wine
Branch: master
Commit: f0c479d6f712991ca466423610b59caa914a9beb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f0c479d6f712991ca466423610b59caa914a9beb

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Nov 16 18:40:38 2007 +0100

d3d8: Destroy the window after the visual test.

---

 dlls/d3d8/tests/visual.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c
index 744e623..d1e2192 100644
--- a/dlls/d3d8/tests/visual.c
+++ b/dlls/d3d8/tests/visual.c
@@ -800,5 +800,10 @@ START_TEST(visual)
     }
 
 cleanup:
-    if(device_ptr) IDirect3DDevice8_Release(device_ptr);
+    if(device_ptr) {
+        D3DDEVICE_CREATION_PARAMETERS creation_parameters;
+        IDirect3DDevice8_GetCreationParameters(device_ptr, &creation_parameters);
+        IDirect3DDevice8_Release(device_ptr);
+        DestroyWindow(creation_parameters.hFocusWindow);
+    }
 }




More information about the wine-cvs mailing list