mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[SERVICES] Do not delete running services.
CORE-14260
This commit is contained in:
parent
f032b77c51
commit
2d69520595
1 changed files with 2 additions and 1 deletions
|
@ -992,7 +992,8 @@ RCloseServiceHandle(
|
|||
if (lpService->dwRefCount == 0)
|
||||
{
|
||||
/* If this service has been marked for deletion */
|
||||
if (lpService->bDeleted)
|
||||
if (lpService->bDeleted &&
|
||||
lpService->Status.dwCurrentState == SERVICE_STOPPED)
|
||||
{
|
||||
/* Open the Services Reg key */
|
||||
dwError = RegOpenKeyExW(HKEY_LOCAL_MACHINE,
|
||||
|
|
Loading…
Reference in a new issue