Commit 154aef98 authored by Alexandre Julliard's avatar Alexandre Julliard

services: Don't close the overlapped event when terminating a service.

An overlapping I/O operation may still be in progress.
parent 8ab65c22
......@@ -861,8 +861,6 @@ void service_terminate(struct service_entry *service)
TerminateProcess(service->process, 0);
CloseHandle(service->process);
service->process = NULL;
CloseHandle(service->overlapped_event);
service->overlapped_event = NULL;
CloseHandle(service->status_changed_event);
service->status_changed_event = NULL;
CloseHandle(service->control_mutex);
......
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