_user_wait_for_team() no longer tries to copy the return code if its storage location is NULL.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8561 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-08-13 19:08:35 +00:00
parent f947748c74
commit c06b6654f3

View File

@ -981,7 +981,7 @@ _user_wait_for_team(team_id id, status_t *_userReturnCode)
return B_BAD_ADDRESS;
status = wait_for_team(id, &returnCode);
if (status >= B_OK) {
if (status >= B_OK && _userReturnCode != NULL) {
if (user_memcpy(_userReturnCode, &returnCode, sizeof(returnCode)) < B_OK)
return B_BAD_ADDRESS;
}