VirtualBox

Changeset 82535 in vbox for trunk


Ignore:
Timestamp:
Dec 10, 2019 12:25:32 PM (5 years ago)
Author:
vboxsync
Message:

VBoxSharedClipboardSvc-x11.cpp: Forgot to set pcbActual in ShClSvcImplReadData with the result that the guest didn't really see any data. bugref:9437

File:
1 edited

Legend:

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

    r82534 r82535  
    203203                if (RT_SUCCESS(rc))
    204204                {
    205                     memcpy(pData->pvData,  pPayload->pvData, RT_MIN(pData->cbData, pPayload->cbData));
    206                     pData->cbData = pPayload->cbData;
    207 
    208                     Assert(pData->cbData == pPayload->cbData); /* Sanity. */
     205                    memcpy(pData->pvData, pPayload->pvData, RT_MIN(pData->cbData, pPayload->cbData));
     206                    pData->cbData = (uint32_t)pPayload->cbData; /** @todo r=bird: Just ditch this data block wrapper, it made you forget to set pcbActual! */
     207                    *pcbActual = (uint32_t)pPayload->cbData;
    209208                }
    210209            }
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