mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:57:19 +00:00
wldap32/tests: Compile with -D__WINESRC__.
This commit is contained in:
parent
fcd4527ea9
commit
0994781df6
|
@ -1,6 +1,5 @@
|
|||
TESTDLL = wldap32.dll
|
||||
IMPORTS = wldap32
|
||||
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
|
||||
|
||||
C_SRCS = \
|
||||
parse.c
|
||||
|
|
|
@ -51,13 +51,13 @@ static void test_ldap_parse_sort_control( LDAP *ld )
|
|||
if (ret == LDAP_SERVER_DOWN)
|
||||
{
|
||||
skip("test server can't be reached\n");
|
||||
ldap_control_free( sort );
|
||||
ldap_control_freeA( sort );
|
||||
return;
|
||||
}
|
||||
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
|
||||
ok( res != NULL, "expected res != NULL\n" );
|
||||
|
||||
if (GetProcAddress(GetModuleHandle("wldap32.dll"), "ber_init"))
|
||||
if (GetProcAddress(GetModuleHandleA("wldap32.dll"), "ber_init"))
|
||||
{
|
||||
ret = ldap_parse_resultA( NULL, res, &result, NULL, NULL, NULL, &server_ctrls, 1 );
|
||||
ok( ret == LDAP_PARAM_ERROR, "ldap_parse_resultA failed 0x%x\n", ret );
|
||||
|
@ -82,8 +82,8 @@ static void test_ldap_parse_sort_control( LDAP *ld )
|
|||
ret = ldap_parse_sort_controlA( ld, server_ctrls, &result, NULL );
|
||||
ok( ret == LDAP_CONTROL_NOT_FOUND, "ldap_parse_sort_controlA failed 0x%x\n", ret );
|
||||
|
||||
ldap_control_free( sort );
|
||||
ldap_controls_free( server_ctrls );
|
||||
ldap_control_freeA( sort );
|
||||
ldap_controls_freeA( server_ctrls );
|
||||
}
|
||||
|
||||
static void test_ldap_search_extW( LDAP *ld )
|
||||
|
|
Loading…
Reference in a new issue