chore: upgrade dependencies

This commit is contained in:
MetaCubeX
2022-04-20 01:31:33 +08:00
parent 5d36d8b139
commit 42d853a7e6
7 changed files with 19 additions and 23 deletions

View File

@ -27,7 +27,7 @@ func ShouldFindProcess(metadata *C.Metadata) bool {
if runtime.GOOS == "android" {
return false
}
if metadata.Process != "" {
if metadata.Process != "" || metadata.ProcessPath != "" {
return false
}
for _, ip := range localIPs {

View File

@ -214,8 +214,7 @@ func getExecPathFromPID(pid uint32) (string, error) {
uintptr(h),
uintptr(1),
uintptr(unsafe.Pointer(&buf[0])),
uintptr(unsafe.Pointer(&size)),
0, 0)
uintptr(unsafe.Pointer(&size)))
if r1 == 0 {
return "", err
}