Wrong data were copied back to the userland cookie in user_get_next_port_info().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4832 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
453ee0db01
commit
867d3753c3
@ -1141,7 +1141,7 @@ user_get_next_port_info(team_id uteam, int32 *ucookie, struct port_info *uinfo)
|
||||
|
||||
res = get_next_port_info(uteam, &cookie, &info);
|
||||
// copy to userspace
|
||||
rc = user_memcpy(ucookie, &info, sizeof(int32));
|
||||
rc = user_memcpy(ucookie, &cookie, sizeof(int32));
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
rc = user_memcpy(uinfo, &info, sizeof(struct port_info));
|
||||
|
Loading…
x
Reference in New Issue
Block a user