Changeset 82851 in vbox for trunk/src/VBox
- Timestamp:
- Jan 24, 2020 10:58:39 AM (5 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r82846 r82851 5 5 6 6 /* 7 * Copyright (C) 2006-20 19Oracle Corporation7 * Copyright (C) 2006-2020 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 235 235 /* Clipboard was updated by another application, retrieve formats and report back. */ 236 236 rc = vboxClipboardSvcWinSyncInternal(pCtx); 237 if (RT_SUCCESS(rc))238 rc = shClSvcSetSource(pCtx->pClient, SHCLSOURCE_LOCAL);239 237 } 240 238 else … … 277 275 /* Clipboard was updated by another application, retrieve formats and report back. */ 278 276 rc = vboxClipboardSvcWinSyncInternal(pCtx); 279 if (RT_SUCCESS(rc))280 shClSvcSetSource(pCtx->pClient, SHCLSOURCE_LOCAL);281 277 } 282 278 else -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r82849 r82851 1285 1285 RTCritSectLeave(&pClient->CritSect); 1286 1286 1287 /*1288 * ...1289 */1290 1287 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1291 # error fixme1292 1288 /* If we announce an URI list, create a transfer locally and also tell the guest to create 1293 1289 * a transfer on the guest side. */ … … 1296 1292 rc = shClSvcTransferStart(pClient, SHCLTRANSFERDIR_TO_REMOTE, SHCLSOURCE_LOCAL, 1297 1293 NULL /* pTransfer */); 1294 if (RT_SUCCESS(rc)) 1295 rc = shClSvcSetSource(pClient, SHCLSOURCE_LOCAL); 1296 1298 1297 if (RT_FAILURE(rc)) 1299 1298 LogRel(("Shared Clipboard: Initializing host write transfer failed with %Rrc\n", rc)); … … 1305 1304 rc = VINF_SUCCESS; 1306 1305 } 1307 /** @todo r=bird: shouldn't we also call shClSvcSetSource(pClient, SHCLSOURCE_LOCAL) here??1308 * Looks like the caller of this function does it, but only on windows. Very helpful. */1309 1306 } 1310 1307 else … … 1713 1710 } 1714 1711 1712 /** 1713 * Sets the transfer source type of a Shared Clipboard client. 1714 * 1715 * @returns VBox status code. 1716 * @param pClient Client to set transfer source type for. 1717 * @param enmSource Source type to set. 1718 */ 1715 1719 int shClSvcSetSource(PSHCLCLIENT pClient, SHCLSOURCE enmSource) 1716 1720 {
Note:
See TracChangeset
for help on using the changeset viewer.