Skip to content

Commit

Permalink
fix: reduce access level in LocateSpecificServiceExe (#2238)
Browse files Browse the repository at this point in the history
fixes: #2237
  • Loading branch information
jmartens authored Apr 3, 2024
1 parent f2b667c commit 908ef13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/Lib/win32serviceutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def LocateSpecificServiceExe(serviceName):
win32con.HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Services\\%s" % (serviceName),
0,
win32con.KEY_ALL_ACCESS,
win32con.KEY_QUERY_VALUE,
)
try:
return win32api.RegQueryValueEx(hkey, "ImagePath")[0]
Expand Down

0 comments on commit 908ef13

Please sign in to comment.