bug fix: pointer indirection error while checking cookie value
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
95574b3621
commit
bd2251961c
@ -458,7 +458,7 @@ _get_next_port_info(team_id team, int32 *cookie, struct port_info *info, size_t
|
||||
if (cookie == NULL)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if (*cookie == NULL) {
|
||||
if (*cookie == 0) {
|
||||
// return first found
|
||||
slot = 0;
|
||||
} else {
|
||||
|
@ -667,7 +667,7 @@ _get_next_sem_info(team_id team, int32 *cookie, struct sem_info *info, size_t sz
|
||||
if (team < 0)
|
||||
return B_BAD_TEAM_ID;
|
||||
|
||||
if (*cookie == NULL) {
|
||||
if (*cookie == 0) {
|
||||
// return first found
|
||||
slot = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user