Fixed RemoveMessage() I broke before.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15085 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-23 14:42:33 +00:00
parent 876a3803df
commit 6338e9da5d

View File

@ -108,6 +108,9 @@ BMessageQueue::RemoveMessage(BMessage* message)
// remove this one
if (entry == fHead)
fHead = entry->fQueueLink;
else
last->fQueueLink = entry->fQueueLink;
if (entry == fTail)
fTail = last;