[IPHLPAPI]
authorCameron Gutman <aicommander@gmail.com>
Fri, 6 Aug 2010 23:01:10 +0000 (23:01 +0000)
committerCameron Gutman <aicommander@gmail.com>
Fri, 6 Aug 2010 23:01:10 +0000 (23:01 +0000)
- Comment out the GetAdaptersAddresses code and add the stub back
- Fixes Firefox 3.x (bug 5399)

svn path=/trunk/; revision=48474

reactos/dll/win32/iphlpapi/iphlpapi_main.c

index 8508d2d..717fd2d 100644 (file)
@@ -2291,6 +2291,7 @@ PIP_ADAPTER_ORDER_MAP WINAPI GetAdapterOrderMap(VOID)
  */
 DWORD WINAPI GetAdaptersAddresses(ULONG Family,ULONG Flags,PVOID Reserved,PIP_ADAPTER_ADDRESSES pAdapterAddresses,PULONG pOutBufLen)
 {
+#if 0
     InterfaceIndexTable *indexTable;
     IFInfo ifInfo;
     int i;
@@ -2477,6 +2478,15 @@ DWORD WINAPI GetAdaptersAddresses(ULONG Family,ULONG Flags,PVOID Reserved,PIP_AD
     free(indexTable);
 
     return NO_ERROR;
+#else
+    if (!pOutBufLen) return ERROR_INVALID_PARAMETER;
+    if (!pAdapterAddresses || *pOutBufLen == 0)
+      return ERROR_BUFFER_OVERFLOW;
+    if (Reserved) return ERROR_INVALID_PARAMETER;
+
+    FIXME(":stub\n");
+    return ERROR_NO_DATA;
+#endif
 }
 
 /*