Changeset 99974 in vbox
- Timestamp:
- May 25, 2023 11:10:14 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 157634
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp
r98103 r99974 148 148 { 149 149 if (!pSource) 150 return VINF_SUCCESS; 151 152 if (!RTCritSectIsInitialized(&pSource->CritSect)) /* Already destroyed? Bail out. */ 150 153 return VINF_SUCCESS; 151 154 … … 294 297 295 298 ShClPayloadFree(pEvent->pPayload); 299 pEvent->pPayload = NULL; 296 300 297 301 pEvent->idEvent = NIL_SHCLEVENTID; -
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.