From 6997c8d70c91bc19d5678776878d01fcada4ec6c Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 28 Mar 2010 23:51:07 +0200 Subject: [PATCH] wined3d: Remove superfluous cast of zero. --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 897681d6225..9b63dd0b7e5 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3054,7 +3054,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantI( TRACE("(iface %p, dstData %p, start %d, count %d)\n", iface, dstData, start, count); - if (dstData == NULL || ((signed int) MAX_CONST_I - (signed int) start) <= (signed int) 0) + if (dstData == NULL || ((signed int) MAX_CONST_I - (signed int) start) <= 0) return WINED3DERR_INVALIDCALL; memcpy(dstData, &This->stateBlock->vertexShaderConstantI[start * 4], cnt * sizeof(int) * 4);