Skip to content

Commit 3d69d4e

Browse files
committed
[EVENTLOG]
- Stop listening to RPC messages when receiving SERVICE_CONTROL_STOP svn path=/trunk/; revision=53267
1 parent e0cbe30 commit 3d69d4e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

reactos/base/services/eventlog/eventlog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ ServiceControlHandler(DWORD dwControl,
6363
{
6464
case SERVICE_CONTROL_STOP:
6565
DPRINT(" SERVICE_CONTROL_STOP received\n");
66+
/* Stop listening to incoming RPC messages */
67+
RpcMgmtStopServerListening(NULL);
6668
UpdateServiceStatus(SERVICE_STOPPED);
6769
return ERROR_SUCCESS;
6870

reactos/base/services/umpnpmgr/umpnpmgr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,6 +3043,8 @@ ServiceControlHandler(DWORD dwControl,
30433043
{
30443044
case SERVICE_CONTROL_STOP:
30453045
DPRINT1(" SERVICE_CONTROL_STOP received\n");
3046+
/* Stop listening to RPC Messages */
3047+
RpcMgmtStopServerListening(NULL);
30463048
UpdateServiceStatus(SERVICE_STOPPED);
30473049
return ERROR_SUCCESS;
30483050

0 commit comments

Comments
 (0)