[PATCH] gdi.exe16: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Sat Aug 4 15:45:39 CDT 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
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 f0c354bb1c..006dd83947 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];
}
--
2.14.4
More information about the wine-devel
mailing list