*/
#include "config.h"
-
#include "wine/port.h"
-#include "wine/debug.h"
#include <stdarg.h>
+#ifdef HAVE_LDAP_H
+#include <ldap.h>
+#endif
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winnls.h"
-#ifdef HAVE_LDAP_H
-#include <ldap.h>
-#endif
-
#include "winldap_private.h"
#include "wldap32.h"
-
-extern HINSTANCE hwldap32;
+#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
{
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];
}