VirtualBox

Ignore:
Timestamp:
Jun 13, 2019 10:08:33 AM (6 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardProvider-VbglR3.cpp

    r79036 r79120  
    6565}
    6666
    67 int SharedClipboardProviderVbglR3::ReadMetaData(const PVBOXCLIPBOARDDATAHDR pDataHdr, void *pvMeta, uint32_t cbMeta,
    68                                                 uint32_t *pcbRead, uint32_t fFlags /* = 0 */)
     67int SharedClipboardProviderVbglR3::ReadDataChunkk(const PVBOXCLIPBOARDDATAHDR pDataHdr, void *pvChunk, uint32_t cbChunk,
     68                                                  uint32_t *pcbRead, uint32_t fFlags /* = 0 */)
    6969{
    7070    RT_NOREF(fFlags);
     
    7575
    7676    uint32_t cbReadTotal = 0;
    77     uint32_t cbToRead = RT_MIN(pDataHdr->cbMeta, cbMeta);
     77    uint32_t cbToRead = RT_MIN(pDataHdr->cbMeta, cbChunk);
    7878
    7979    while (cbToRead)
    8080    {
    8181        uint32_t cbRead;
    82         rc = VbglR3ClipboardReadMetaData(m_uClientID, pDataHdr, (uint8_t *)pvMeta + cbReadTotal, cbToRead, &cbRead);
     82        rc = VbglR3ClipboardReadMetaData(m_uClientID, pDataHdr, (uint8_t *)pvChunk + cbReadTotal, cbToRead, &cbRead);
    8383        if (RT_FAILURE(rc))
    8484            break;
     
    9999}
    100100
    101 int SharedClipboardProviderVbglR3::WriteMetaData(const PVBOXCLIPBOARDDATAHDR pDataHdr, const void *pvMeta, uint32_t cbMeta,
    102                                                  uint32_t *pcbWritten, uint32_t fFlags /* = 0 */)
     101int SharedClipboardProviderVbglR3::WriteDataChunk(const PVBOXCLIPBOARDDATAHDR pDataHdr, const void *pvChunk, uint32_t cbChunk,
     102                                                  uint32_t *pcbWritten, uint32_t fFlags /* = 0 */)
    103103{
    104104    RT_NOREF(fFlags);
     
    109109
    110110    uint32_t cbWrittenTotal = 0;
    111     uint32_t cbToWrite      = RT_MIN(pDataHdr->cbMeta, cbMeta);
     111    uint32_t cbToWrite      = RT_MIN(pDataHdr->cbMeta, cbChunk);
    112112
    113113    while (cbToWrite)
    114114    {
    115115        uint32_t cbWritten;
    116         rc = VbglR3ClipboardWriteMetaData(m_uClientID, pDataHdr, (uint8_t *)pvMeta + cbWrittenTotal, cbToWrite, &cbWritten);
     116        rc = VbglR3ClipboardWriteMetaData(m_uClientID, pDataHdr, (uint8_t *)pvChunk + cbWrittenTotal, cbToWrite, &cbWritten);
    117117        if (RT_FAILURE(rc))
    118118            break;
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