[PATCH] wldap32: Use the ARRAY_SIZE() macro
9 Aug
2018
9 Aug
'18
6:59 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/wldap32/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wldap32/error.c b/dlls/wldap32/error.c index 2e09e9e399..fbbd124d23 100644 --- a/dlls/wldap32/error.c +++ b/dlls/wldap32/error.c @@ -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]; } -- 2.14.4
2688
Age (days ago)
2688
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc