VirtualBox

Ignore:
Timestamp:
Feb 9, 2021 1:26:19 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142700
Message:

Shared Clipboard/Transfers: Rearranged parameter lists of ShClTransferObj[Read|Write](). ​bugref:9437

Location:
trunk/src/VBox/GuestHost/SharedClipboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp

    r87454 r87658  
    298298    {
    299299        Assert(pSrvTx->hObj != SHCLOBJHANDLE_INVALID);
    300 //        rc = ShClTransferObjRead(pSrvTx->pTransfer, pSrvTx->hObj, );
    301 rc = 0;
     300
     301        uint32_t cbRead;
     302        rc = ShClTransferObjRead(pSrvTx->pTransfer, pSrvTx->hObj, pvBuf, cbBuf, 0 /* fFlags */, &cbRead);
    302303        if (RT_SUCCESS(rc))
    303304        {
    304 
     305            *pcbRead = (uint32_t)cbRead;
    305306        }
    306307
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r87653 r87658  
    963963 * @param   pvBuf               Buffer for where to store the read data.
    964964 * @param   cbBuf               Size (in bytes) of buffer.
    965  * @param   pcbRead             How much bytes were read on success. Optional.
     965 * @param   fFlags              Read flags. Optional.
     966 * @param   pcbRead             Where to return how much bytes were read on success. Optional.
    966967 */
    967968int ShClTransferObjRead(PSHCLTRANSFER pTransfer,
    968                         SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead, uint32_t fFlags)
     969                        SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t fFlags, uint32_t *pcbRead)
    969970{
    970971    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    10271028 * @param   pvBuf               Buffer of data to write.
    10281029 * @param   cbBuf               Size (in bytes) of buffer to write.
     1030 * @param   fFlags              Write flags. Optional.
    10291031 * @param   pcbWritten          How much bytes were writtenon success. Optional.
    10301032 */
    10311033int ShClTransferObjWrite(PSHCLTRANSFER pTransfer,
    1032                          SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten,
    1033                          uint32_t fFlags)
     1034                         SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t fFlags, uint32_t *pcbWritten)
    10341035{
    10351036    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
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