https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5e2fe08918fc5a3c52d58…
commit 5e2fe08918fc5a3c52d586a8dc8b8df851473c20
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Wed Sep 19 16:35:12 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Wed Sep 19 16:35:12 2018 +0200
[WLNOTIFY] Disable the Logoff-Handler routine for the scheduler service.
The Logoff-Handler might try to notify the scheduler service which might already have
been shut down. We need to fix the shutdown sequence, so that the service manager stops
all running services.
Might fix CORE-14521.
---
dll/win32/wlnotify/schedsvc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/win32/wlnotify/schedsvc.c b/dll/win32/wlnotify/schedsvc.c
index edf89e29ec..ffca335386 100644
--- a/dll/win32/wlnotify/schedsvc.c
+++ b/dll/win32/wlnotify/schedsvc.c
@@ -17,9 +17,11 @@ WINAPI
SchedEventLogoff(
PWLX_NOTIFICATION_INFO pInfo)
{
+#if 0
SC_HANDLE hManager = NULL;
SC_HANDLE hService = NULL;
SERVICE_STATUS ServiceStatus;
+#endif
TRACE("SchedEventLogoff\n");
TRACE("Size: %lu\n", pInfo->Size);
@@ -31,6 +33,7 @@ SchedEventLogoff(
TRACE("hDesktop: %p\n", pInfo->hDesktop);
TRACE("pStatusCallback: %p\n", pInfo->pStatusCallback);
+#if 0
hManager = OpenSCManagerW(NULL, NULL, SC_MANAGER_CONNECT);
if (hManager == NULL)
{
@@ -56,6 +59,7 @@ done:
if (hManager != NULL)
CloseServiceHandle(hManager);
+#endif
}