d3d10core: Fix out of bounds access (Coverity).

This commit is contained in:
André Hentschel 2014-09-22 20:41:58 +02:00 committed by Alexandre Julliard
parent 3fc386fc86
commit 8a7d4c7f22
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ HRESULT d3d10_query_init(struct d3d10_query *query, struct d3d10_device *device,
/* D3D10_QUERY_SO_OVERFLOW_PREDICATE */ WINED3D_QUERY_TYPE_SO_OVERFLOW,
};
if (desc->Query > sizeof(query_type_map) / sizeof(*query_type_map))
if (desc->Query >= sizeof(query_type_map) / sizeof(*query_type_map))
{
FIXME("Unhandled query type %#x.\n", desc->Query);
return E_INVALIDARG;