gdi.exe16: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-08-04 22:45:39 +02:00 committed by Alexandre Julliard
parent 7000af5547
commit d8e66774f4
1 changed files with 1 additions and 1 deletions

View File

@ -3048,7 +3048,7 @@ BOOL16 WINAPI IsGDIObject16( HGDIOBJ16 handle16 )
UINT type = GetObjectType( HGDIOBJ_32( handle16 ));
if (type >= sizeof(type_map)/sizeof(type_map[0])) return FALSE;
if (type >= ARRAY_SIZE(type_map)) return FALSE;
return type_map[type];
}