Commit c21ede44 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

services: Terminate service when its status is set to SERVICE_STOPPED.

parent 01ef66cb
......@@ -697,7 +697,9 @@ DWORD __cdecl svcctl_SetServiceStatus(
service->service_entry->status.dwWaitHint = lpServiceStatus->dwWaitHint;
service_unlock(service->service_entry);
if (service->service_entry->status_changed_event)
if (lpServiceStatus->dwCurrentState == SERVICE_STOPPED)
service_terminate(service->service_entry);
else if (service->service_entry->status_changed_event)
SetEvent(service->service_entry->status_changed_event);
return ERROR_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment