diff options
Diffstat (limited to 'sql/nt_servc.cc')
-rw-r--r-- | sql/nt_servc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/nt_servc.cc b/sql/nt_servc.cc index b18d3d00d88..320098cd8bc 100644 --- a/sql/nt_servc.cc +++ b/sql/nt_servc.cc @@ -498,7 +498,7 @@ BOOL NTService::IsService(LPCSTR ServiceName) if (scm = OpenSCManager(0, 0,SC_MANAGER_ENUMERATE_SERVICE)) { - if ((service = OpenService(scm,ServiceName, SERVICE_ALL_ACCESS ))) + if ((service = OpenService(scm,ServiceName, SERVICE_QUERY_STATUS))) { ret_value=TRUE; CloseServiceHandle(service); |