Changeset 99937 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 23, 2023 3:38:52 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 157594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r98218 r99937 718 718 if (pRootList) 719 719 { 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) 728 724 { 729 725 pRootList->paEntries = 730 (PSHCLROOTLISTENTRY)RTMemAllocZ( srcRootListHdr.cRoots * sizeof(SHCLROOTLISTENTRY));726 (PSHCLROOTLISTENTRY)RTMemAllocZ(pRootList->Hdr.cRoots * sizeof(SHCLROOTLISTENTRY)); 731 727 if (pRootList->paEntries) 732 728 { 733 for (uint32_t i = 0; i < srcRootListHdr.cRoots; i++)729 for (uint32_t i = 0; i < pRootList->Hdr.cRoots; i++) 734 730 { 735 731 SHCLROOTLISTENTRY *pEntry = &pRootList->paEntries[i]; … … 2116 2112 LogFlowFunc(("pszPath=%s\n", openParmsList.pszPath)); 2117 2113 2118 SHCLLISTHANDLE hList = SHCLLISTHANDLE_INVALID;2114 SHCLLISTHANDLE hList = NIL_SHCLLISTHANDLE; 2119 2115 rc = ShClTransferListOpen(pTransfer, &openParmsList, &hList); 2120 2116 … … 2154 2150 /** @todo Handle filter + list features. */ 2155 2151 2156 SHCLLISTHANDLE hList = SHCLLISTHANDLE_INVALID;2152 SHCLLISTHANDLE hList = NIL_SHCLLISTHANDLE; 2157 2153 uint32_t fFlags = 0; 2158 2154 rc = VbglR3ClipboardListHdrReadRecvReq(pCmdCtx, &hList, &fFlags);
Note:
See TracChangeset
for help on using the changeset viewer.