27 Mar
2023
27 Mar
'23
7:12 a.m.
Hans Leidekker (@hans) commented about dlls/wldap32/option.c:
+ BOOL turn_on; + char *uri, *new_uri; + + if (value == WLDAP32_LDAP_OPT_ON) + turn_on = TRUE; + else if (value == WLDAP32_LDAP_OPT_OFF) + turn_on = FALSE; + else if (*(ULONG *)value == 1) + turn_on = TRUE; + else if (*(ULONG *)value == 0) + turn_on = FALSE; + else + return WLDAP32_LDAP_PARAM_ERROR; + + ret = ldap_get_option( CTX(ld), LDAP_OPT_URI, &uri ); + if (ret != LDAP_SUCCESS) return ret; You should use map_error() here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2508#note_27949