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

This commit is contained in:
Stefan Dösinger 2008-08-25 09:13:30 -05:00 committed by Alexandre Julliard
parent 506ff74bb1
commit 58ac095d9d
1 changed files with 1 additions and 1 deletions
dlls/ddraw

View File

@ -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);