From cba85f673d4b0728ca5ddf26f583acfdf04fdff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 27 Sep 2015 16:16:26 +0000 Subject: [PATCH] [KERNEL32]: Use the _ARRAYSIZE macro in the ENV_NAME_ENTRY macro, for the same reasons mentioned in r69376. svn path=/trunk/; revision=69377 --- reactos/dll/win32/kernel32/client/vdm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/dll/win32/kernel32/client/vdm.c b/reactos/dll/win32/kernel32/client/vdm.c index 0164cb44385..712b23296d0 100644 --- a/reactos/dll/win32/kernel32/client/vdm.c +++ b/reactos/dll/win32/kernel32/client/vdm.c @@ -43,9 +43,8 @@ typedef struct _ENV_INFO /* GLOBALS ********************************************************************/ -// NOTE: We cannot use ARRAYSIZE in this macro. GCC would complain otherwise. #define ENV_NAME_ENTRY(type, name) \ - {(type), (sizeof(name)/sizeof(*((ENV_INFO*)0)->Name)) - 1, (name)} + {(type), _ARRAYSIZE(name) - 1, (name)} static ENV_INFO BasepEnvNameType[] = {