VirtualBox

Ignore:
Timestamp:
Feb 19, 2024 1:51:37 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161773
Message:

Shared Clipboard: Condensed more code by adding a SHCLTRANSFERCALLBACKS::pfnOnInitialize() callback function. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r103365 r103442  
    21522152    int rc = ShClTransferSetProvider(pTransfer, &Provider);
    21532153    if (RT_SUCCESS(rc))
    2154     {
    21552154        rc = ShClTransferInit(pTransfer);
    2156         if (RT_SUCCESS(rc))
    2157         {
    2158             /* As soon as we report the INITIALIZED state to the host, the host can start reading stuff from the transfer.
    2159              * So make sure that we really are ready here. */
    2160             if (enmDir == SHCLTRANSFERDIR_TO_REMOTE)
    2161                 AssertMsgStmt(ShClTransferRootsCount(pTransfer), ("No root entries set yet!\n"
    2162                                                                   "Those have to be present as soon we report the transfer as being INITIALIZED to the host\n"),
    2163                               rc = VERR_WRONG_ORDER);
    2164         }
    2165     }
    21662155
    21672156    SHCLTRANSFERID const idTransfer = ShClTransferGetID(pTransfer);
Note: See TracChangeset for help on using the changeset viewer.

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