d3d9/tests: Destroy the window after we release the device.

Although either order is supposed to work, the former crashes with Wine.
This commit is contained in:
Huw Davies 2009-12-03 13:28:15 +00:00 committed by Alexandre Julliard
parent 1c582d2ac5
commit 14b343fcd0
1 changed files with 1 additions and 1 deletions

View File

@ -10748,9 +10748,9 @@ cleanup:
IDirect3DDevice9_GetSwapChain(device_ptr, 0, &swapchain);
IDirect3DSwapChain9_GetPresentParameters(swapchain, &present_parameters);
DestroyWindow(present_parameters.hDeviceWindow);
IDirect3DSwapChain9_Release(swapchain);
ref = IDirect3DDevice9_Release(device_ptr);
ok(ref == 0, "The device was not properly freed: refcount %u\n", ref);
DestroyWindow(present_parameters.hDeviceWindow);
}
}