wldap32: Fix overrun by one of static array.
This commit is contained in:
parent
b72c36fef8
commit
42af5f3950
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue