Author: hbelusca
Date: Sun Sep 27 16:16:26 2015
New Revision: 69377
URL:
http://svn.reactos.org/svn/reactos?rev=69377&view=rev
Log:
[KERNEL32]: Use the _ARRAYSIZE macro in the ENV_NAME_ENTRY macro, for the same reasons
mentioned in r69376.
Modified:
trunk/reactos/dll/win32/kernel32/client/vdm.c
Modified: trunk/reactos/dll/win32/kernel32/client/vdm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/vdm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/vdm.c [iso-8859-1] Sun Sep 27 16:16:26 2015
@@ -43,9 +43,8 @@
/* 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[] =
{