iphlpapi: add FreeMibTable implementation (try 2)
Austin English
austinenglish at gmail.com
Fri Dec 26 22:04:50 CST 2014
Try 2: fixed specfile, comment
--
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141226/245e6eb9/attachment.html>
-------------- next part --------------
diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
index c51b58b..5690f1b 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 c06b69f..61976dd 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -420,6 +420,23 @@ 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
+ *
+ * RETURNS
+ * Success: TRUE
+ * Failure: FALSE
+ */
+void WINAPI FreeMibTable (PVOID *ptr)
+{
+ TRACE("(ptr %p): stub\n", ptr);
+ HeapFree(GetProcessHeap(), 0, ptr);
+}
/******************************************************************
* GetAdapterIndex (IPHLPAPI.@)
More information about the wine-patches
mailing list