From d5bd699e4969e871ffec23b068046f639fa35fee Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 26 Jul 2018 00:05:53 +0200 Subject: [PATCH] scrobj: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/scrobj/scrobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/scrobj/scrobj.c b/dlls/scrobj/scrobj.c index 3e6535a6073..989a6483702 100644 --- a/dlls/scrobj/scrobj.c +++ b/dlls/scrobj/scrobj.c @@ -102,7 +102,7 @@ static void release_typelib(void) if (!typelib) return; - for (i = 0; i < sizeof(typeinfos)/sizeof(*typeinfos); i++) + for (i = 0; i < ARRAY_SIZE(typeinfos); i++) if (typeinfos[i]) ITypeInfo_Release(typeinfos[i]); @@ -369,7 +369,7 @@ static HRESULT WINAPI scriptlet_typelib_get_GUID(IGenScriptletTLib *iface, BSTR if (FAILED(hr)) return hr; - hr = StringFromGUID2(&guid, guidW, sizeof(guidW)/sizeof(guidW[0])); + hr = StringFromGUID2(&guid, guidW, ARRAY_SIZE(guidW)); if (FAILED(hr)) return hr;