d3dx9_36: Fixed off by 1 in the usage_idx check (Coverity).

This commit is contained in:
Marcus Meissner 2010-05-25 23:40:59 +02:00 committed by Alexandre Julliard
parent 0ff9d8c290
commit 41809d5833
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ static HRESULT vs_find_builtin_varyings(struct bc_writer *This, const struct bwr
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;
}