[ros-dev] [ros-diffs] [reactos] 01/01: [NETAPI32] Implement DsDeregisterDnsHostRecordsA

Thomas Faber thomas.faber at reactos.org
Sun Aug 25 05:58:46 UTC 2019


Hey Eric,

On 2019-08-24 22:58, Eric Kohl wrote:
> diff --git a/dll/win32/netapi32/netlogon.c b/dll/win32/netapi32/netlogon.c
> index 2c068dc176b..73a0324f0fa 100644
> --- a/dll/win32/netapi32/netlogon.c
> +++ b/dll/win32/netapi32/netlogon.c
> @@ -313,10 +313,58 @@ DsDeregisterDnsHostRecordsA(
>       _In_opt_ GUID *DsaGuid,
>       _In_ LPSTR DnsHostName)
>   {
[...]
> +
> +    if (DnsDomainName != NULL)
> +    {
> +        pDnsDomainNameW = NetpAllocWStrFromAnsiStr((PSTR)DnsDomainName);
> +        if (pDnsDomainNameW == NULL)
> +        {
> +            status = ERROR_NOT_ENOUGH_MEMORY;
> +            goto done;
> +        }
> +    }
> +
> +    pDnsHostNameW = NetpAllocWStrFromAnsiStr((PSTR)DnsDomainName);


UserNT points out that you probably meant DnsHostName here rather than DnsDomainName.


> +    if (pDnsHostNameW == NULL)
> +    {
> +        status = ERROR_NOT_ENOUGH_MEMORY;
> +        goto done;
> +    }
> +

Best,
Thomas



More information about the Ros-dev mailing list