From 8f9f49addc36ff4beed2698f4a395544c87f2200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Gim=C3=A9nez?= Date: Sat, 9 Mar 2024 23:34:42 +0900 Subject: [PATCH] oops --- pkg/memory/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/memory/process.go b/pkg/memory/process.go index 44c54e4..642ff89 100644 --- a/pkg/memory/process.go +++ b/pkg/memory/process.go @@ -40,7 +40,7 @@ func NewProcess() (Process, error) { func NewProcessForPID(pid uint32) (Process, error) { module, found := getMainModule(pid) - if found { + if !found { return Process{}, errors.New("no module found for the specified PID") }