wldap32: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-08-09 20:59:37 +02:00 committed by Alexandre Julliard
parent 2c6a9c87da
commit 480236c45d
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ ULONG CDECL LdapMapErrorToWin32( ULONG err )
{
TRACE( "(0x%08x)\n", err );
if (err >= sizeof(WLDAP32_errormap)/sizeof(WLDAP32_errormap[0]))
if (err >= ARRAY_SIZE( WLDAP32_errormap ))
return ERROR_DS_GENERIC_ERROR;
return WLDAP32_errormap[err];
}