mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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:
parent
1c582d2ac5
commit
14b343fcd0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue