From d8e66774f40d36f80e7ecb3839438c37f2b6416a Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 4 Aug 2018 22:45:39 +0200 Subject: [PATCH] gdi.exe16: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/gdi.exe16/gdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi.exe16/gdi.c b/dlls/gdi.exe16/gdi.c index f0c354bb1c4..006dd839473 100644 --- a/dlls/gdi.exe16/gdi.c +++ b/dlls/gdi.exe16/gdi.c @@ -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]; }