This commit is contained in:
恍兮惚兮 2024-11-25 23:02:54 +08:00
parent 9be975e15f
commit 6818785b64

View File

@ -116,8 +116,8 @@ def getpidexe(pid):
)
if not hproc:
hproc = windows.OpenProcess(
windows.PROCESS_QUERY_LIMITED_INFORMATION, False, pid
hproc = windows.AutoHandle(
windows.OpenProcess(windows.PROCESS_QUERY_LIMITED_INFORMATION, False, pid)
)
if not hproc:
name_ = None