dnsapi: Do not fail if NETDB_INTERNAL is not present.

This commit is contained in:
Bruno Jesus 2014-07-06 22:22:18 -03:00 committed by Alexandre Julliard
parent ece6f5c3e0
commit 836e6690d4
1 changed files with 2 additions and 0 deletions

View File

@ -147,7 +147,9 @@ static DNS_STATUS dns_map_h_errno( int error )
case HOST_NOT_FOUND: return DNS_ERROR_RCODE_NAME_ERROR; case HOST_NOT_FOUND: return DNS_ERROR_RCODE_NAME_ERROR;
case TRY_AGAIN: return DNS_ERROR_RCODE_SERVER_FAILURE; case TRY_AGAIN: return DNS_ERROR_RCODE_SERVER_FAILURE;
case NO_RECOVERY: return DNS_ERROR_RCODE_REFUSED; case NO_RECOVERY: return DNS_ERROR_RCODE_REFUSED;
#ifdef NETDB_INTERNAL
case NETDB_INTERNAL: return DNS_ERROR_RCODE; case NETDB_INTERNAL: return DNS_ERROR_RCODE;
#endif
default: default:
FIXME( "unmapped error code: %d\n", error ); FIXME( "unmapped error code: %d\n", error );
return DNS_ERROR_RCODE_NOT_IMPLEMENTED; return DNS_ERROR_RCODE_NOT_IMPLEMENTED;