Changeset 99974 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- Timestamp:
- May 25, 2023 11:10:14 AM (21 months ago)
- svn:sync-xref-src-repo-rev:
- 157634
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r99968 r99974 1445 1445 1446 1446 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1447 /* 1448 * If transfer mode is set to disabled, don't report the URI list format to the guest. 1449 */ 1447 bool fSkipTransfers = false; 1450 1448 if (!(g_fTransferMode & VBOX_SHCL_TRANSFER_MODE_F_ENABLED)) 1451 1449 { 1450 LogRel2(("Shared Clipboard: File transfers are disabled, skipping reporting those to the guest\n")); 1451 fSkipTransfers = true; 1452 } 1453 else if (!(pClient->State.fGuestFeatures0 & VBOX_SHCL_GF_0_TRANSFERS)) 1454 { 1455 LogRel2(("Shared Clipboard: File transfers not supported by installed Guest Addtions, skipping reporting those to the guest\n")); 1456 fSkipTransfers = true; 1457 } 1458 1459 if (fSkipTransfers) 1452 1460 fFormats &= ~VBOX_SHCL_FMT_URI_LIST; 1453 LogRel2(("Shared Clipboard: File transfers are disabled, skipping reporting those to the guest\n"));1454 }1455 1461 #endif 1456 1462 … … 1477 1483 1478 1484 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1479 /* If we announce an URI list, create a transfer locally and also tell the guest to create 1480 * a transfer on the guest side. */ 1481 if (fFormats & VBOX_SHCL_FMT_URI_LIST) 1485 /* Create a transfer locally and also tell the guest to create a transfer on the guest side. */ 1486 if (!fSkipTransfers) 1482 1487 { 1483 1488 rc = shClSvcTransferStart(pClient, SHCLTRANSFERDIR_TO_REMOTE, SHCLSOURCE_LOCAL, … … 1491 1496 else 1492 1497 #endif 1493 {1494 1498 rc = VINF_SUCCESS; 1495 }1496 1499 } 1497 1500 else … … 2210 2213 2211 2214 shClSvcClientLock(pClient); 2215 2216 /* Reset message queue. */ 2217 shClSvcMsgQueueReset(pClient); 2212 2218 2213 2219 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
Note:
See TracChangeset
for help on using the changeset viewer.