wldap32: Fix overrun by one of static array.

This commit is contained in:
Hans Leidekker 2006-04-08 16:11:48 +02:00 committed by Alexandre Julliard
parent b72c36fef8
commit 42af5f3950
1 changed files with 1 additions and 1 deletions

View File

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