mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:41:43 +00:00
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:
parent
7000af5547
commit
d8e66774f4
|
@ -3048,7 +3048,7 @@ BOOL16 WINAPI IsGDIObject16( HGDIOBJ16 handle16 )
|
||||||
|
|
||||||
UINT type = GetObjectType( HGDIOBJ_32( 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];
|
return type_map[type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue