mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SERVICES] Do not delete running services.
CORE-14260
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user