Commit 58ac095d authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: Don't destroy the application's window.

parent 506ff74b
......@@ -331,7 +331,7 @@ IDirectDrawSurfaceImpl_Release(IDirectDrawSurface7 *iface)
else
{
/* Free the d3d window if one was created */
if(ddraw->d3d_window != 0)
if(ddraw->d3d_window != 0 && ddraw->d3d_window != ddraw->dest_window)
{
TRACE(" (%p) Destroying the hidden render window %p\n", This, ddraw->d3d_window);
DestroyWindow(ddraw->d3d_window);
......
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