mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
net.exe: Add missing CloseServiceHandle().
This commit is contained in:
parent
1f11333c7b
commit
a13340d4a0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user