[DHCPSVC] Properly stub DhcpRequestParams()
authorPierre Schweitzer <pierre@reactos.org>
Thu, 6 Dec 2018 21:24:47 +0000 (22:24 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 6 Dec 2018 21:26:10 +0000 (22:26 +0100)
This will avoid crash upon Google Chrome start.

CORE-15422

base/services/dhcpcsvc/dhcpcsvc.c
base/services/dhcpcsvc/dhcpcsvc.spec

index bfd3dbf..e1f131c 100644 (file)
@@ -255,6 +255,21 @@ DhcpNotifyConfigChange(LPWSTR ServerName,
     return 0;
 }
 
+DWORD APIENTRY
+DhcpRequestParams(DWORD Flags,
+                  PVOID Reserved,
+                  LPWSTR AdapterName,
+                  LPDHCPCAPI_CLASSID ClassId,
+                  DHCPCAPI_PARAMS_ARRAY SendParams,
+                  DHCPCAPI_PARAMS_ARRAY RecdParams,
+                  LPBYTE Buffer,
+                  LPDWORD pSize,
+                  LPWSTR RequestIdStr)
+{
+    UNIMPLEMENTED;
+    return 0;
+}
+
 /*!
  * Get DHCP info for an adapter
  *
index b9f9571..277184e 100644 (file)
@@ -32,7 +32,7 @@
 @ stdcall DhcpRenewIpAddressLease(long)
 @ stub DhcpRenewIpAddressLeaseEx
 @ stub DhcpRequestOptions
-@ stub DhcpRequestParams
+@ stdcall DhcpRequestParams(long ptr ptr ptr long ptr long ptr ptr ptr ptr)
 @ stdcall DhcpStaticRefreshParams(long long long)
 @ stub DhcpUndoRequestParams
 @ stub McastApiCleanup