Commit a13340d4 authored by Tim Schwartz's avatar Tim Schwartz Committed by Alexandre Julliard

net.exe: Add missing CloseServiceHandle().

parent 1f11333c
......@@ -44,6 +44,7 @@ static BOOL StopService(SC_HANDLE SCManager, SC_HANDLE serviceHandle)
printf("Stopping dependent service: %s\n", dependencies[counter].lpDisplayName);
dependent_serviceHandle = OpenService(SCManager, dependencies[counter].lpServiceName, SC_MANAGER_ALL_ACCESS);
if(dependent_serviceHandle) result = StopService(SCManager, dependent_serviceHandle);
CloseServiceHandle(dependent_serviceHandle);
if(!result) printf("Could not stop service %s\n", dependencies[counter].lpDisplayName);
}
}
......
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