oleaut32: Avoid buffer overread (Coverity).

This commit is contained in:
Marcus Meissner 2014-06-17 07:43:25 +02:00 committed by Alexandre Julliard
parent 5e1783b59a
commit d3d54dfd3c
1 changed files with 1 additions and 1 deletions

View File

@ -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)