[PATCH] DDraw: Catch attempts to opengl-render to the desktop =
Stefan Doesinger
stefan at codeweavers.com
Wed Aug 27 13:20:50 CDT 2008
window=0A=
=0A=
---=0A=
dlls/ddraw/ddraw.c | 2 +-=0A=
1 files changed, 1 insertions(+), 1 deletions(-)=0A=
=0A=
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c=0A=
index 1728c96..9fdbd27 100644=0A=
--- a/dlls/ddraw/ddraw.c=0A=
+++ b/dlls/ddraw/ddraw.c=0A=
@@ -3279,7 +3279,7 @@ IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl =
*This,=0A=
TRACE("(%p)->(%p)\n", This, primary);=0A=
=0A=
/* If there's no window, create a hidden window. WineD3D needs it */=0A=
- if(window =3D=3D 0)=0A=
+ if(window =3D=3D 0 || window =3D=3D GetDesktopWindow())=0A=
{=0A=
window =3D CreateWindowExA(0, This->classname, "Hidden D3D =
Window",=0A=
WS_DISABLED, 0, 0,=0A=
-- =0A=
1.5.6.4=0A=
=0A=
------=_NextPart_000_0035_01C909E1.8454A080--
More information about the wine-patches
mailing list