[vbox-dev] Looks like a potential bug in DnD, please check

Huihong Luo huisinro at yahoo.com
Thu Jul 28 17:34:06 GMT 2016


During our development of Leapdroid vm, we found that DnD sometimes not working, we traced the code, and the root cause is a callback is registered too early.
Specifically, it's in src\VBox\Main\src-client\GuestDnDTargetImpl.cpp:
int GuestDnDTarget::i_sendURIData(PSENDDATACTX pCtx, RTMSINTERVAL msTimeout){
rc = GuestDnDInst()->hostCall(MsgSndData.getType(), MsgSndData.getCount(), MsgSndData.getParms());
REGISTER_CALLBACK(DragAndDropSvc::GUEST_DND_GET_NEXT_HOST_MSG);   <=== this call needs to move to here after params are set
}
Basically, need to register later.
Please take a look,
Thanks,
- Huihong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160728/04a981de/attachment.html>


More information about the vbox-dev mailing list