Changeset 87640 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
- Timestamp:
- Feb 8, 2021 3:57:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r87611 r87640 99 99 */ 100 100 pCtx->idClient = 0; 101 pCtx->fGuestFeatures = fGuestFeatures; 101 102 pCtx->fHostFeatures = 0; 102 103 pCtx->fGuestFeatures = VBOX_SHCL_GF_NONE; … … 107 108 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 108 109 /* Indicate that this guest supports Shared Clipboard file transfers. */ 109 pCtx->fGuestFeatures 110 pCtx->fGuestFeatures |= VBOX_SHCL_GF_0_TRANSFERS; 110 111 # ifdef RT_OS_WINDOWS 111 112 /* Indicate that on Windows guest OSes we have our own IDataObject implementation which 112 113 * integrates nicely into the guest's Windows Explorer showing / handling the Shared Clipboard file transfers. */ 113 pCtx->fGuestFeatures 114 pCtx->fGuestFeatures |= VBOX_SHCL_GF_0_TRANSFERS_FRONTEND; 114 115 # endif 115 116 pCtx->Transfers.cbChunkSize = VBOX_SHCL_DEFAULT_CHUNK_SIZE; /** @todo Make this configurable. */ … … 126 127 * Next is reporting our features. If this fails, assume older host. 127 128 */ 128 rc = VbglR3ClipboardReportFeatures(pCtx->idClient, fGuestFeatures, &pCtx->fHostFeatures);129 rc = VbglR3ClipboardReportFeatures(pCtx->idClient, pCtx->fGuestFeatures, &pCtx->fHostFeatures); 129 130 if (RT_SUCCESS(rc)) 130 131 { 131 pCtx->fGuestFeatures = fGuestFeatures;132 133 132 LogRel2(("Shared Clipboard: Guest features: %#RX64 - Host features: %#RX64\n", 134 133 pCtx->fGuestFeatures, pCtx->fHostFeatures)); … … 2226 2225 { 2227 2226 uint32_t cbRead; 2228 rc = ShClTransferObjRead(pTransfer, hObj, pvBuf, cbToRead, &cbRead, fFlags);2227 rc = ShClTransferObjRead(pTransfer, hObj, pvBuf, cbToRead, fFlags, &cbRead); 2229 2228 if (RT_SUCCESS(rc)) 2230 2229 rc = VbglR3ClipboardObjWriteSend(pCmdCtx, hObj, pvBuf, cbRead, NULL /* pcbWritten */);
Note:
See TracChangeset
for help on using the changeset viewer.