mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[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:
parent
9be71e7524
commit
cba85f673d
1 changed files with 1 additions and 2 deletions
|
@ -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[] =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue