Gerald Pfeifer : ddraw: Fix error checking in IDirect3DExecuteBufferImpl_Execute().

Alexandre Julliard julliard at winehq.org
Mon Jun 22 09:04:13 CDT 2009


Module: wine
Branch: master
Commit: 3176d936f988d54d8f170cd47bc2fa1f9df4fa66
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3176d936f988d54d8f170cd47bc2fa1f9df4fa66

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Fri Jun 19 19:01:21 2009 +0200

ddraw: Fix error checking in IDirect3DExecuteBufferImpl_Execute().

---

 dlls/ddraw/executebuffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c
index 73e0657..6d6d304 100644
--- a/dlls/ddraw/executebuffer.c
+++ b/dlls/ddraw/executebuffer.c
@@ -249,7 +249,7 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
 
 		    TRACE("(%08x,%08x)\n", ci->u1.dlstLightStateType, ci->u2.dwArg[0]);
 
-		    if (!ci->u1.dlstLightStateType && (ci->u1.dlstLightStateType > D3DLIGHTSTATE_COLORVERTEX))
+		    if (!ci->u1.dlstLightStateType || (ci->u1.dlstLightStateType > D3DLIGHTSTATE_COLORVERTEX))
 			ERR("Unexpected Light State Type\n");
 		    else if (ci->u1.dlstLightStateType == D3DLIGHTSTATE_MATERIAL /* 1 */) {
 			DWORD matHandle = ci->u2.dwArg[0];




More information about the wine-cvs mailing list