Author: cwittich
Date: Wed Dec 23 16:58:59 2009
New Revision: 44739
URL:
http://svn.reactos.org/svn/reactos?rev=44739&view=rev
Log:
[wldap32_winetest]
sync wldap32_winetest to wine 1.1.35
Modified:
trunk/rostests/winetests/wldap32/parse.c
Modified: trunk/rostests/winetests/wldap32/parse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/wldap32/parse.c…
==============================================================================
--- trunk/rostests/winetests/wldap32/parse.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/wldap32/parse.c [iso-8859-1] Wed Dec 23 16:58:59 2009
@@ -57,8 +57,13 @@
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
ok( res != NULL, "expected res != NULL\n" );
- 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 );
+ if (GetProcAddress(GetModuleHandle("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
);
+ }
+ else
+ win_skip("Test would crash on older wldap32 versions\n");
result = ~0u;
ret = ldap_parse_resultA( ld, res, &result, NULL, NULL, NULL, &server_ctrls,
1 );