1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00

Fixed agent status when not administrator.

This commit is contained in:
Ylian Saint-Hilaire
2019-03-20 13:01:28 -07:00
parent 45f5859f37
commit 47716cf387

View File

@@ -497,7 +497,7 @@ int GetServiceState(LPCSTR servicename)
if (serviceControlManager)
{
SC_HANDLE service = OpenService( serviceControlManager, servicename, SERVICE_QUERY_STATUS | DELETE );
SC_HANDLE service = OpenService( serviceControlManager, servicename, SERVICE_QUERY_STATUS );
if (service)
{
SERVICE_STATUS serviceStatusEx;