Austin English : iphlpapi: Add FreeMibTable implementation.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jan 14 14:35:43 CST 2015


Module: wine
Branch: master
Commit: 44933230f63402ad079c8d22c024119f8d5228e6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=44933230f63402ad079c8d22c024119f8d5228e6

Author: Austin English <austinenglish at gmail.com>
Date:   Mon Jan 12 14:50:43 2015 -0800

iphlpapi: Add FreeMibTable implementation.

---

 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.@)




More information about the wine-cvs mailing list