d3d10core: Fix out of bounds access (Coverity).
This commit is contained in:
parent
3fc386fc86
commit
8a7d4c7f22
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue