VirtualBox

Changeset 81212 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Oct 10, 2019 12:22:34 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133874
Message:

Shared Clipboard/Transfers: Update.

File:
1 edited

Legend:

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

    r81154 r81212  
    501501                    for (uint32_t i = 0; i < srcRootListHdr.cRoots; i++)
    502502                    {
    503                         rc = vbglR3ClipboardRootListEntryRead(pCtx, i, &pRootList->paEntries[i]);
     503                        SHCLROOTLISTENTRY *pEntry = &pRootList->paEntries[i];
     504                        AssertPtr(pEntry);
     505
     506                        rc = SharedClipboardTransferRootListEntryInit(pEntry);
     507                        if (RT_SUCCESS(rc))
     508                            rc = vbglR3ClipboardRootListEntryRead(pCtx, i, pEntry);
     509
    504510                        if (RT_FAILURE(rc))
    505511                            break;
     
    12661272    Msg.uHandle.SetUInt64(0);
    12671273    Msg.cbPath.SetUInt32(pCreateParms->cbPath);
    1268     Msg.szPath.SetPtr((void *)pCreateParms->pszPath, pCreateParms->cbPath + 1 /* Include terminating zero */);
     1274    Msg.szPath.SetPtr((void *)pCreateParms->pszPath, pCreateParms->cbPath);
    12691275    Msg.fCreate.SetUInt32(pCreateParms->fCreate);
    12701276
     
    14401446    Msg.uContext.SetUInt32(pCtx->uContextID);
    14411447    Msg.uHandle.SetUInt64(hObj);
     1448    Msg.cbData.SetUInt32(cbData);
    14421449    Msg.pvData.SetPtr(pvData, cbData);
    1443     Msg.cbData.SetUInt32(cbData);
     1450    Msg.cbChecksum.SetUInt32(0);
    14441451    Msg.pvChecksum.SetPtr(NULL, 0);
    1445     Msg.cbChecksum.SetUInt32(0);
    14461452
    14471453    int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
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