include: Use the ARRAY_SIZE() macro in debug.h.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
139cc95610
commit
af3992374e
|
@ -254,7 +254,7 @@ static inline const char *wine_dbgstr_vt( VARTYPE vt )
|
||||||
if (vt & ~VT_TYPEMASK)
|
if (vt & ~VT_TYPEMASK)
|
||||||
return wine_dbg_sprintf( "%s%s", wine_dbgstr_vt(vt&VT_TYPEMASK), variant_flags[vt>>12] );
|
return wine_dbg_sprintf( "%s%s", wine_dbgstr_vt(vt&VT_TYPEMASK), variant_flags[vt>>12] );
|
||||||
|
|
||||||
if (vt < sizeof(variant_types)/sizeof(*variant_types))
|
if (vt < ARRAY_SIZE(variant_types))
|
||||||
return variant_types[vt];
|
return variant_types[vt];
|
||||||
|
|
||||||
if (vt == VT_BSTR_BLOB)
|
if (vt == VT_BSTR_BLOB)
|
||||||
|
|
Loading…
Reference in New Issue