Commit 8a7d4c7f authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

d3d10core: Fix out of bounds access (Coverity).

parent 3fc386fc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment