mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
23 lines
618 B
Plaintext
23 lines
618 B
Plaintext
From 6f963691d4cb1ac0458212160ceebda35944e7c3 Mon Sep 17 00:00:00 2001
|
|
From: devnexen <devnexen@gmail.com>
|
|
Date: Mon, 23 Nov 2020 09:28:36 +0000
|
|
Subject: Merge upstream patch for using proper team_id/pid_t
|
|
|
|
|
|
diff --git a/libr/util/sys.c b/libr/util/sys.c
|
|
index f2dc348..6dbdc67 100644
|
|
--- a/libr/util/sys.c
|
|
+++ b/libr/util/sys.c
|
|
@@ -1212,7 +1212,7 @@ R_API char *r_sys_pid_to_path(int pid) {
|
|
int32_t group = 0;
|
|
image_info ii;
|
|
|
|
- while (get_next_image_info (0, &group, &ii) == B_OK) {
|
|
+ while (get_next_image_info ((team_id)pid, &group, &ii) == B_OK) {
|
|
if (ii.type == B_APP_IMAGE) {
|
|
break;
|
|
}
|
|
--
|
|
2.28.0
|
|
|