https://git.reactos.org/?p=reactos.git;a=commitdiff;h=622f187c04c7444c2420f…
commit 622f187c04c7444c2420fd60cfb1792d92e99112
Author: Oleg Dubinskiy <oleg.dubinskij2013(a)yandex.ua>
AuthorDate: Thu Jun 18 21:06:34 2020 +0300
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Jun 27 14:55:28 2020 +0200
[MSWSOCK] Use a correct prototype for SvchostPushServiceGlobals stub
See
https://www.geoffchappell.com/studies/windows/win32/services/svchost/dll/sv….
---
dll/win32/mswsock/mswsock.spec | 2 +-
dll/win32/mswsock/stubs.c | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/dll/win32/mswsock/mswsock.spec b/dll/win32/mswsock/mswsock.spec
index 0fef34d96d9..8f8f0e7e5f4 100644
--- a/dll/win32/mswsock/mswsock.spec
+++ b/dll/win32/mswsock/mswsock.spec
@@ -18,7 +18,7 @@
@ stdcall SetServiceW(long long long ptr ptr ptr)
@ stdcall StartWsdpService()
@ stdcall StopWsdpService()
-@ stdcall SvchostPushServiceGlobals(long)
+@ stdcall SvchostPushServiceGlobals(ptr)
@ stdcall TransmitFile(long long long long ptr ptr long)
@ stdcall WSARecvEx(long ptr long ptr)
@ stdcall WSPStartup(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr
ptr ptr)
diff --git a/dll/win32/mswsock/stubs.c b/dll/win32/mswsock/stubs.c
index a05284c6eb1..f026bc61cff 100644
--- a/dll/win32/mswsock/stubs.c
+++ b/dll/win32/mswsock/stubs.c
@@ -12,6 +12,7 @@
#include <windef.h>
#include <ws2spi.h>
#include <nspapi.h>
+#include <svc.h>
typedef DWORD (* LPFN_NSPAPI)(VOID);
typedef struct _NS_ROUTINE {
@@ -441,14 +442,14 @@ StopWsdpService()
/*
* @unimplemented
+ *
+ * See
https://www.geoffchappell.com/studies/windows/win32/services/svchost/dll/sv…
*/
-DWORD
+VOID
WINAPI
-SvchostPushServiceGlobals(DWORD Value)
+SvchostPushServiceGlobals(SVCHOST_GLOBALS *lpGlobals)
{
OutputDebugStringW(L"mswsock SvchostPushServiceGlobals stub called\n");
-
- return 0;
}