From 8ae0d33bb783444884445bc393e9d487846ec1fd Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 4 Aug 2018 22:45:41 +0200 Subject: [PATCH] hnetcfg: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/hnetcfg/apps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/hnetcfg/apps.c b/dlls/hnetcfg/apps.c index 21e1007da9b..e671e8ca8de 100644 --- a/dlls/hnetcfg/apps.c +++ b/dlls/hnetcfg/apps.c @@ -157,7 +157,7 @@ void release_typelib(void) { unsigned i; - for (i = 0; i < sizeof(typeinfo)/sizeof(*typeinfo); i++) + for (i = 0; i < ARRAY_SIZE(typeinfo); i++) if (typeinfo[i]) ITypeInfo_Release(typeinfo[i]);