wldap32: Don't produce unreachable code during conditional compilation. Found bySmatch.

This commit is contained in:
Michael Stefaniuc 2007-07-23 22:25:50 +02:00 committed by Alexandre Julliard
parent 11bb71d3d6
commit ca2a6673c9
4 changed files with 30 additions and 17 deletions

View file

@ -236,8 +236,9 @@ exit:
strfreeW( hostnameW );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -288,8 +289,9 @@ exit:
strfreeU( url );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -342,8 +344,9 @@ exit:
strfreeW( hostnameW );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -395,8 +398,9 @@ exit:
strfreeU( url );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -423,8 +427,9 @@ exit:
strfreeW( hostnameW );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -475,8 +480,9 @@ exit:
strfreeU( url );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -502,8 +508,9 @@ WLDAP32_LDAP * CDECL ldap_sslinitA( PCHAR hostname, ULONG portnumber, int secure
strfreeW( hostnameW );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -559,8 +566,9 @@ exit:
strfreeU( url );
return ld;
#endif
#else
return NULL;
#endif
}
/***********************************************************************

View file

@ -375,8 +375,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_first_entry( WLDAP32_LDAP *ld, WLDAP32_
if (!ld || !res) return NULL;
return ldap_first_entry( ld, res );
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -401,8 +402,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_first_reference( WLDAP32_LDAP *ld, WLDA
if (!ld) return NULL;
return ldap_first_reference( ld, res );
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -536,8 +538,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_next_entry( WLDAP32_LDAP *ld, WLDAP32_L
if (!ld || !entry) return NULL;
return ldap_next_entry( ld, entry );
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -565,8 +568,9 @@ WLDAP32_LDAPMessage * CDECL WLDAP32_ldap_next_reference( WLDAP32_LDAP *ld, WLDAP
if (!ld || !entry) return NULL;
return ldap_next_reference( ld, entry );
#endif
#else
return NULL;
#endif
}
/***********************************************************************

View file

@ -152,9 +152,7 @@ static ULONG create_page_control( ULONG pagesize, struct WLDAP32_berval *cookie,
ULONG CDECL ldap_create_page_controlW( WLDAP32_LDAP *ld, ULONG pagesize,
struct WLDAP32_berval *cookie, UCHAR critical, PLDAPControlW *control )
{
ULONG ret = LDAP_NOT_SUPPORTED;
#ifdef HAVE_LDAP
TRACE( "(%p, 0x%08x, %p, 0x%02x, %p)\n", ld, pagesize, cookie,
critical, control );
@ -163,8 +161,9 @@ ULONG CDECL ldap_create_page_controlW( WLDAP32_LDAP *ld, ULONG pagesize,
return create_page_control( pagesize, cookie, critical, control );
#else
return LDAP_NOT_SUPPORTED;
#endif
return ret;
}
ULONG CDECL ldap_get_next_page( WLDAP32_LDAP *ld, PLDAPSearch search, ULONG pagesize,

View file

@ -272,8 +272,9 @@ struct WLDAP32_berval ** CDECL ldap_get_values_lenA( WLDAP32_LDAP *ld,
strfreeW( attrW );
return ret;
#endif
#else
return NULL;
#endif
}
/***********************************************************************
@ -314,8 +315,9 @@ struct WLDAP32_berval ** CDECL ldap_get_values_lenW( WLDAP32_LDAP *ld,
strfreeU( attrU );
return (struct WLDAP32_berval **)ret;
#endif
#else
return NULL;
#endif
}
/***********************************************************************