ddraw: Don't destroy the application's window.
This commit is contained in:
parent
506ff74bb1
commit
58ac095d9d
dlls/ddraw
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue