| commit | 41809d5833950d5664515cc182a07bb89e8cf99b | [log] [tgz] |
|---|---|---|
| author | Marcus Meissner <marcus@jet.franken.de> | Tue May 25 23:40:59 2010 +0200 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed May 26 10:11:01 2010 +0200 |
| tree | 3ba979ef99aea1879a2e2b093c281cdf63ccdacb | |
| parent | 0ff9d8c290e7a5423bd4f38a902188c2a7e2f254 [diff] |
d3dx9_36: Fixed off by 1 in the usage_idx check (Coverity).
diff --git a/dlls/d3dx9_36/bytecodewriter.c b/dlls/d3dx9_36/bytecodewriter.c index 384fed3..055b8ef 100644 --- a/dlls/d3dx9_36/bytecodewriter.c +++ b/dlls/d3dx9_36/bytecodewriter.c
@@ -435,7 +435,7 @@ break; case BWRITERDECLUSAGE_TEXCOORD: - if(usage_idx > 8) { + if(usage_idx >= 8) { WARN("dcl_color%u not supported in sm 1/2 shaders\n", usage_idx); return E_INVALIDARG; }