Commit d3d54dfd authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

oleaut32: Avoid buffer overread (Coverity).

parent 5e1783b5
......@@ -84,7 +84,7 @@ const char *debugstr_vt(VARTYPE vt)
if(vt & ~VT_TYPEMASK)
return wine_dbg_sprintf("%s%s", debugstr_vt(vt&VT_TYPEMASK), variant_flags[vt>>12]);
if(vt <= sizeof(variant_types)/sizeof(*variant_types))
if(vt < sizeof(variant_types)/sizeof(*variant_types))
return variant_types[vt];
if(vt == VT_BSTR_BLOB)
......
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