CID 1261: The "previous" list entry wasn't maintained, causing lost list items

when removing a non-first element.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27458 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-09-12 17:17:29 +00:00
parent 5565f43e07
commit 0a28b4e324
@@ -95,6 +95,7 @@ DeviceList::RemoveDevice(const char *name, void *device)
return B_OK; return B_OK;
} }
previous = current;
current = current->next; current = current->next;
} }