Changeset 79702 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jul 11, 2019 7:34:05 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132047
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r79672 r79702 423 423 } 424 424 425 VBGLR3DECL(int) VbglR3ClipboardListCloseReply(HGCMCLIENTID idClient, int rcReply, SHAREDCLIPBOARDLISTHANDLE hList) 426 { 427 VBoxClipboardReplyMsg Msg; 428 RT_ZERO(Msg); 429 430 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, 431 VBOX_SHARED_CLIPBOARD_GUEST_FN_REPLY, 6); 432 433 Msg.uContext.SetUInt32(0); /** @todo Context ID not used yet. */ 434 Msg.enmType.SetUInt32(VBOX_SHAREDCLIPBOARD_REPLYMSGTYPE_LIST_CLOSE); 435 Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */ 436 Msg.cbPayload.SetUInt32(0); 437 Msg.pvPayload.SetPtr(0, NULL); 438 439 Msg.u.ListOpen.uHandle.SetUInt64(hList); 440 441 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); 442 443 LogFlowFuncLeaveRC(rc); 444 return rc; 445 } 446 425 447 VBGLR3DECL(int) VbglR3ClipboardListCloseSend(HGCMCLIENTID idClient, SHAREDCLIPBOARDLISTHANDLE hList) 426 448 { … … 671 693 if (RT_SUCCESS(rc)) 672 694 { 673 /** @todo Handle fFlags. */695 /** @todo Handle Roots.fRoots flags. */ 674 696 675 697 char *pszRoots = NULL; … … 680 702 /** @todo Split up transfers in _64K each. */ 681 703 682 rc = VbglR3ClipboardRootsWrite(idClient, cRoots, 683 pszRoots, pszRoots ? (uint32_t)strlen(pszRoots) : NULL); 704 const uint32_t cbRoots = pszRoots 705 ? (uint32_t)strlen(pszRoots) + 1 /* Include termination. */ 706 : 0; 707 708 rc = VbglR3ClipboardRootsWrite(idClient, cRoots, pszRoots, cbRoots); 684 709 } 685 710 } … … 725 750 { 726 751 rc = SharedClipboardURITransferListClose(pTransfer, hList); 752 753 /* Reply in any case. */ 754 int rc2 = VbglR3ClipboardListCloseReply(idClient, rc, hList); 755 AssertRC(rc2); 727 756 } 728 757
Note:
See TracChangeset
for help on using the changeset viewer.