Stefan Dösinger : wined3d: Add parentheses to a flag check.

Alexandre Julliard julliard at winehq.org
Mon Dec 3 09:17:51 CST 2007


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Dec  2 14:14:30 2007 +0100

wined3d: Add parentheses to a flag check.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 9ae5bf0..ea3d130 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6402,7 +6402,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
         FIXME("Trying to set render target 0 to NULL\n");
         return WINED3DERR_INVALIDCALL;
     }
-    if (pRenderTarget && !((IWineD3DSurfaceImpl *)pRenderTarget)->resource.usage & WINED3DUSAGE_RENDERTARGET) {
+    if (pRenderTarget && !(((IWineD3DSurfaceImpl *)pRenderTarget)->resource.usage & WINED3DUSAGE_RENDERTARGET)) {
         FIXME("(%p)Trying to set the render target to a surface(%p) that wasn't created with a usage of WINED3DUSAGE_RENDERTARGET\n",This ,pRenderTarget);
         return WINED3DERR_INVALIDCALL;
     }




More information about the wine-cvs mailing list