https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f57b1d02d4e9f274f517c2eea2133cc202373eb9

commit f57b1d02d4e9f274f517c2eea2133cc202373eb9
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Thu Dec 6 22:24:47 2018 +0100
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Thu Dec 6 22:26:10 2018 +0100

    [DHCPSVC] Properly stub DhcpRequestParams()
    This will avoid crash upon Google Chrome start.
    
    CORE-15422
---
 base/services/dhcpcsvc/dhcpcsvc.c    | 15 +++++++++++++++
 base/services/dhcpcsvc/dhcpcsvc.spec |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/base/services/dhcpcsvc/dhcpcsvc.c 
b/base/services/dhcpcsvc/dhcpcsvc.c
index bfd3dbf6a5..e1f131c6c5 100644
--- a/base/services/dhcpcsvc/dhcpcsvc.c
+++ b/base/services/dhcpcsvc/dhcpcsvc.c
@@ -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
  *
diff --git a/base/services/dhcpcsvc/dhcpcsvc.spec 
b/base/services/dhcpcsvc/dhcpcsvc.spec
index b9f95712bb..277184ebcd 100644
--- a/base/services/dhcpcsvc/dhcpcsvc.spec
+++ b/base/services/dhcpcsvc/dhcpcsvc.spec
@@ -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

Reply via email to