This commit is contained in:
Héctor Giménez
2024-03-09 23:34:42 +09:00
parent 38eb5287a4
commit 8f9f49addc

View File

@@ -40,7 +40,7 @@ func NewProcess() (Process, error) {
func NewProcessForPID(pid uint32) (Process, error) { func NewProcessForPID(pid uint32) (Process, error) {
module, found := getMainModule(pid) module, found := getMainModule(pid)
if found { if !found {
return Process{}, errors.New("no module found for the specified PID") return Process{}, errors.New("no module found for the specified PID")
} }