From f4ec0a209b10dfbf1f44a2bf0cdf2bebc19ee3ed Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 3 Dec 2007 20:41:31 +0100 Subject: [PATCH] wined3d: Fix error handling in fixed_get_input(). --- dlls/wined3d/drawprim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 64ed0386bd2..e70f0251db4 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -133,7 +133,7 @@ static BOOL fixed_get_input( else if (usage == WINED3DDECLUSAGE_SAMPLE && usage_idx == 0) *regnum = 14 + WINED3DDP_MAXTEXCOORD; - if (*regnum < 0) { + if (*regnum == -1) { FIXME("Unsupported input stream [usage=%s, usage_idx=%u]\n", debug_d3ddeclusage(usage), usage_idx); return FALSE;