Fix a case in BShelf where it wouldn't return the error correctly if the replicant was rejected by the shelf. This

would cause various incorrect behavior, best observed in the form of Deskbar crashing if you tried to drag and drop 
a large replicant (i.e. Workspaces) onto it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24418 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-03-17 01:20:49 +00:00
parent 18a83f09cf
commit 36ac322c47

View File

@ -1192,7 +1192,7 @@ BShelf::_AddReplicant(BMessage *data, BPoint *location, uint32 uniqueID)
const BPoint point = location ? *location : view->Frame().LeftTop();
replicant = _GetReplicant(data, view, point, dragger, relation);
if (replicant == NULL)
send_reply(data, B_ERROR, uniqueID);
return send_reply(data, B_ERROR, uniqueID);
} else if (fDisplayZombies && fAllowZombies)
zombie = _CreateZombie(data, dragger);