From 8a29a4a66776a1d8bb963d4092cb7d6a9af0b932 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 24 Aug 2011 10:23:04 +0200 Subject: [PATCH] dnsapi: Implement DnsFree. --- dlls/dnsapi/dnsapi.spec | 1 + dlls/dnsapi/record.c | 9 +++++++++ include/windns.h | 1 + 3 files changed, 11 insertions(+) diff --git a/dlls/dnsapi/dnsapi.spec b/dlls/dnsapi/dnsapi.spec index bb14f4b0bd2..2fb68469260 100644 --- a/dlls/dnsapi/dnsapi.spec +++ b/dlls/dnsapi/dnsapi.spec @@ -35,6 +35,7 @@ @ stub DnsFlushResolverCacheEntry_A @ stub DnsFlushResolverCacheEntry_UTF8 @ stub DnsFlushResolverCacheEntry_W +@ stdcall DnsFree(ptr long) @ stub DnsFreeAdapterInformation @ stub DnsFreeNetworkInformation @ stub DnsFreeSearchInformation diff --git a/dlls/dnsapi/record.c b/dlls/dnsapi/record.c index 15efbf1f7c1..e9252ef2b04 100644 --- a/dlls/dnsapi/record.c +++ b/dlls/dnsapi/record.c @@ -639,6 +639,15 @@ VOID WINAPI DnsRecordListFree( PDNS_RECORD list, DNS_FREE_TYPE type ) } } +/****************************************************************************** + * DnsFree [DNSAPI.@] + * + */ +void WINAPI DnsFree( PVOID data, DNS_FREE_TYPE type ) +{ + return DnsRecordListFree( data, type ); +} + /****************************************************************************** * DnsRecordSetCompare [DNSAPI.@] * diff --git a/include/windns.h b/include/windns.h index 205f30d7b34..b8a3e0934e1 100644 --- a/include/windns.h +++ b/include/windns.h @@ -619,6 +619,7 @@ DNS_STATUS WINAPI DnsAcquireContextHandle_W(DWORD,PVOID,PHANDLE); #define DnsAcquireContextHandle WINELIB_NAME_AW(DnsAcquireContextHandle_) DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W(PDNS_MESSAGE_BUFFER,WORD,PDNS_RECORDW*); DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8(PDNS_MESSAGE_BUFFER,WORD,PDNS_RECORDA*); +VOID WINAPI DnsFree(PVOID,DNS_FREE_TYPE); DNS_STATUS WINAPI DnsModifyRecordsInSet_A(PDNS_RECORDA,PDNS_RECORDA,DWORD,HANDLE,PVOID,PVOID); DNS_STATUS WINAPI DnsModifyRecordsInSet_W(PDNS_RECORDW,PDNS_RECORDW,DWORD,HANDLE,PVOID,PVOID); DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8(PDNS_RECORDA,PDNS_RECORDA,DWORD,HANDLE,PVOID,PVOID);