Explorar o código

Correct CloseHandle() call.

Closing a service handle is done with CloseHandle() not
CloseServiceHandle().
Iain Patterson %!s(int64=10) %!d(string=hai) anos
pai
achega
4e9901855c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      service.cpp

+ 1 - 1
service.cpp

@@ -528,7 +528,7 @@ void cleanup_nssm_service(nssm_service_t *service) {
   }
   if (service->env) HeapFree(GetProcessHeap(), 0, service->env);
   if (service->env_extra) HeapFree(GetProcessHeap(), 0, service->env_extra);
-  if (service->handle) CloseServiceHandle(service->handle);
+  if (service->handle) CloseHandle(service->handle);
   if (service->process_handle) CloseHandle(service->process_handle);
   if (service->wait_handle) UnregisterWait(service->process_handle);
   if (service->throttle_section_initialised) DeleteCriticalSection(&service->throttle_section);