iphlpapi: add FreeMibTable implementation (try 3)

Austin English austinenglish at gmail.com
Mon Jan 12 16:54:14 CST 2015


-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150112/57b92407/attachment.html>
-------------- next part --------------
From 28e99d094503584d8e6f08a6fa479641d0099bce Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 12 Jan 2015 14:50:43 -0800
Subject: [PATCH] iphlpapi: add FreeMibTable implementation (try 3)

---
 dlls/iphlpapi/iphlpapi.spec   |  2 +-
 dlls/iphlpapi/iphlpapi_main.c | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
index fcb6d72..228f64f 100644
--- a/dlls/iphlpapi/iphlpapi.spec
+++ b/dlls/iphlpapi/iphlpapi.spec
@@ -66,7 +66,7 @@
 #@ stub FlushIpNetTable2
 @ stub FlushIpNetTableFromStack
 #@ stub FlushIpPathTable
-#@ stub FreeMibTable
+@ stdcall FreeMibTable( ptr )
 @ stdcall GetAdapterIndex( wstr ptr )
 @ stub GetAdapterOrderMap
 @ stdcall GetAdaptersAddresses( long long ptr ptr ptr )
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index f04e12a..59f3593 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -442,6 +442,20 @@ DWORD WINAPI FlushIpNetTable(DWORD dwIfIndex)
   return ERROR_NOT_SUPPORTED;
 }
 
+/******************************************************************
+ *    FreeMibTable (IPHLPAPI.@)
+ *
+ * Free buffer allocated by network functions
+ *
+ * PARAMS
+ *  ptr     [In] pointer to the buffer to free
+ *
+ */
+void WINAPI FreeMibTable(void *ptr)
+{
+  TRACE("(%p)\n", ptr);
+  HeapFree(GetProcessHeap(), 0, ptr);
+}
 
 /******************************************************************
  *    GetAdapterIndex (IPHLPAPI.@)
-- 
2.2.0



More information about the wine-patches mailing list