Fixed a possible crashing bug.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9847 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -238,10 +238,10 @@ vm_get_current_user_aspace_id(void)
|
|||||||
{
|
{
|
||||||
struct thread *thread = thread_get_current_thread();
|
struct thread *thread = thread_get_current_thread();
|
||||||
|
|
||||||
if (thread)
|
if (thread != NULL && thread->team->aspace != NULL)
|
||||||
return thread->team->aspace->id;
|
return thread->team->aspace->id;
|
||||||
|
|
||||||
return -1;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user