net.exe: Add missing CloseServiceHandle().

This commit is contained in:
Tim Schwartz 2007-06-20 10:57:51 -05:00 committed by Alexandre Julliard
parent 1f11333c7b
commit a13340d4a0

View File

@ -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);
}
}