Commit 480236c4 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wldap32: Use the ARRAY_SIZE() macro.

parent 2c6a9c87
......@@ -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];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment