From 4d00c5e1eae5a30cfddd76ad981c38795c758b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 14 Jan 2005 19:50:12 +0000 Subject: [PATCH] We introduced the new constant B_CURRENT_TEAM for this. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10731 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/image.c b/src/kernel/core/image.c index 922ab6efbd..8f491916e7 100644 --- a/src/kernel/core/image.c +++ b/src/kernel/core/image.c @@ -1,5 +1,5 @@ /* - * Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. */ @@ -161,7 +161,7 @@ _get_next_image_info(team_id teamID, int32 *cookie, image_info *info, size_t siz state = disable_interrupts(); GRAB_TEAM_LOCK(); - if (teamID == 0) + if (teamID == B_CURRENT_TEAM) team = thread_get_current_thread()->team; else team = team_get_team_struct_locked(teamID);