Commit 14b343fc authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

Although either order is supposed to work, the former crashes with Wine.
parent 1c582d2a
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment