VirtualBox

Changeset 103363 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Feb 14, 2024 5:23:47 PM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161679
Message:

Shared Clipboard: Added a dedicated VERR_SHCLPB_NO_DATA error code, to indicate that clipboard data for a format currently is not available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r100657 r103363  
    103103/**
    104104 * Worker for a reading clipboard from the host.
     105 *
     106 * @returns VBox status code.
     107 * @retval  VERR_SHCLPB_NO_DATA if no clipboard data is available.
     108 * @param   pCtx                Shared Clipbaord context to use.
     109 * @param   uFmt                The format to read clipboard data in.
     110 * @param   ppv                 Where to return the allocated data read.
     111 *                              Must be free'd by the caller.
     112 * @param   pcb                 Where to return number of bytes read.
     113 * @param   pvUser              User-supplied context.
    105114 */
    106115static DECLCALLBACK(int) vbtrReadDataWorker(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb, void *pvUser)
     
    110119    LogFlowFuncEnter();
    111120
    112     int rc = VERR_NO_DATA; /* Play safe. */
     121    int rc;
    113122
    114123    uint32_t cbRead = 0;
     
    145154
    146155    if (!cbRead)
    147         rc = VERR_NO_DATA;
     156        rc = VERR_SHCLPB_NO_DATA;
    148157
    149158    if (RT_SUCCESS(rc))
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