Closing a service handle is done with CloseHandle() not
CloseServiceHandle().
}\r
if (service->env) HeapFree(GetProcessHeap(), 0, service->env);\r
if (service->env_extra) HeapFree(GetProcessHeap(), 0, service->env_extra);\r
- if (service->handle) CloseServiceHandle(service->handle);\r
+ if (service->handle) CloseHandle(service->handle);\r
if (service->process_handle) CloseHandle(service->process_handle);\r
if (service->wait_handle) UnregisterWait(service->process_handle);\r
if (service->throttle_section_initialised) DeleteCriticalSection(&service->throttle_section);\r