Stefan Dösinger : d3d9: Release the window after the visual tests.
Module: wine Branch: master Commit: b4b10d8bc2d6c7a9191898d3a03420bdcae9c6f2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4b10d8bc2d6c7a9191898d3a0... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Tue Nov 6 20:05:49 2007 +0100 d3d9: Release the window after the visual tests. --- dlls/d3d9/tests/visual.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 2214783..5886fb8 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -4426,5 +4426,13 @@ START_TEST(visual) else skip("No ps_1_1 support\n"); cleanup: - if(device_ptr) IDirect3DDevice9_Release(device_ptr); + if(device_ptr) { + D3DPRESENT_PARAMETERS present_parameters; + IDirect3DSwapChain9 *swapchain; + IDirect3DDevice9_GetSwapChain(device_ptr, 0, &swapchain); + IDirect3DSwapChain9_GetPresentParameters(swapchain, &present_parameters); + IDirect3DSwapChain9_Release(swapchain); + IDirect3DDevice9_Release(device_ptr); + DestroyWindow(present_parameters.hDeviceWindow); + } }
participants (1)
-
Alexandre Julliard