VirtualBox

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


Ignore:
Timestamp:
May 23, 2023 3:38:52 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157594
Message:

Shared Clipboard: Added new testcase for the HTTP server in combination with the Shared Clipboard API, various updates and general improvements. bugref:9437

File:
1 edited

Legend:

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

    r98218 r99937  
    718718    if (pRootList)
    719719    {
    720         SHCLROOTLISTHDR srcRootListHdr;
    721         rc = vbglR3ClipboardRootListHdrRead(pCtx, &srcRootListHdr);
    722         if (RT_SUCCESS(rc))
    723         {
    724             pRootList->Hdr.cRoots = srcRootListHdr.cRoots;
    725             pRootList->Hdr.fRoots = 0; /** @todo Implement this. */
    726 
    727             if (srcRootListHdr.cRoots)
     720        rc = vbglR3ClipboardRootListHdrRead(pCtx, &pRootList->Hdr);
     721        if (RT_SUCCESS(rc))
     722        {
     723            if (pRootList->Hdr.cRoots)
    728724            {
    729725                pRootList->paEntries =
    730                     (PSHCLROOTLISTENTRY)RTMemAllocZ(srcRootListHdr.cRoots * sizeof(SHCLROOTLISTENTRY));
     726                    (PSHCLROOTLISTENTRY)RTMemAllocZ(pRootList->Hdr.cRoots * sizeof(SHCLROOTLISTENTRY));
    731727                if (pRootList->paEntries)
    732728                {
    733                     for (uint32_t i = 0; i < srcRootListHdr.cRoots; i++)
     729                    for (uint32_t i = 0; i < pRootList->Hdr.cRoots; i++)
    734730                    {
    735731                        SHCLROOTLISTENTRY *pEntry = &pRootList->paEntries[i];
     
    21162112                        LogFlowFunc(("pszPath=%s\n", openParmsList.pszPath));
    21172113
    2118                         SHCLLISTHANDLE hList = SHCLLISTHANDLE_INVALID;
     2114                        SHCLLISTHANDLE hList = NIL_SHCLLISTHANDLE;
    21192115                        rc = ShClTransferListOpen(pTransfer, &openParmsList, &hList);
    21202116
     
    21542150                /** @todo Handle filter + list features. */
    21552151
    2156                 SHCLLISTHANDLE hList  = SHCLLISTHANDLE_INVALID;
     2152                SHCLLISTHANDLE hList  = NIL_SHCLLISTHANDLE;
    21572153                uint32_t       fFlags = 0;
    21582154                rc = VbglR3ClipboardListHdrReadRecvReq(pCmdCtx, &hList, &fFlags);
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