[KERNEL32]: Use the _ARRAYSIZE macro in the ENV_NAME_ENTRY macro, for the same reason...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 27 Sep 2015 16:16:26 +0000 (16:16 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 27 Sep 2015 16:16:26 +0000 (16:16 +0000)
svn path=/trunk/; revision=69377

reactos/dll/win32/kernel32/client/vdm.c

index 0164cb4..712b232 100644 (file)
@@ -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[] =
 {