VirtualBox

Changeset 100552 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 12, 2023 3:01:19 PM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Removed shClSvcWinDataObjectTransferEndCallback(), not needed, as ShClSvcTransferDestroy() will be called in shClSvcTransferDestroyAll(). bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r100541 r100552  
    401401    LogFlowFuncLeaveRC(rc);
    402402    return rc;
    403 }
    404 
    405 /**
    406  * @copydoc SharedClipboardWinDataObject::CALLBACKS::pfnTransferEnd
    407  *
    408  * Called by SharedClipboardWinDataObject when the assigned transfer has been ended.
    409  *
    410  * @thread  Service main thread.
    411  */
    412 static DECLCALLBACK(int) shClSvcWinDataObjectTransferEndCallback(SharedClipboardWinDataObject::PCALLBACKCTX pCbCtx,
    413                                                                  PSHCLTRANSFER pTransfer, int rcTransfer)
    414 {
    415     LogFlowFuncEnter();
    416 
    417     RT_NOREF(rcTransfer);
    418 
    419     PSHCLCONTEXT pCtx = (PSHCLCONTEXT)pCbCtx->pvUser;
    420     AssertPtr(pCtx);
    421 
    422     ShClSvcTransferDestroy(pCtx->pClient, pTransfer);
    423 
    424     LogFlowFuncLeave();
    425     return VINF_SUCCESS;
    426403}
    427404#endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
     
    607584                RT_ZERO(Callbacks);
    608585                Callbacks.pfnTransferBegin = shClSvcWinDataObjectTransferBeginCallback;
    609                 Callbacks.pfnTransferEnd   = shClSvcWinDataObjectTransferEndCallback;
    610586
    611587                rc = SharedClipboardWinTransferCreateAndSetDataObject(pWinCtx, pCtx, &Callbacks);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette