[KERNEL32]: Use the _ARRAYSIZE macro in the ENV_NAME_ENTRY macro, for the same reasons mentioned in r69376.

svn path=/trunk/; revision=69377
This commit is contained in:
Hermès Bélusca-Maïto 2015-09-27 16:16:26 +00:00
parent 9be71e7524
commit cba85f673d

View file

@ -43,9 +43,8 @@ typedef struct _ENV_INFO
/* GLOBALS ********************************************************************/ /* GLOBALS ********************************************************************/
// NOTE: We cannot use ARRAYSIZE in this macro. GCC would complain otherwise.
#define ENV_NAME_ENTRY(type, name) \ #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[] = static ENV_INFO BasepEnvNameType[] =
{ {