Changeset 80374 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- Timestamp:
- Aug 21, 2019 3:04:54 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132839
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-uri.cpp
r80361 r80374 1326 1326 SharedClipboardURICtxTransfersCleanup(&pClientData->URI); 1327 1327 1328 SHAREDCLIPBOARDURITRANSFERDIR enmDir = SHAREDCLIPBOARDURITRANSFERDIR_READ;1328 const SHAREDCLIPBOARDURITRANSFERDIR enmDir = SHAREDCLIPBOARDURITRANSFERDIR_READ; 1329 1329 1330 1330 PSHAREDCLIPBOARDURITRANSFER pTransfer; … … 1341 1341 creationCtx.enmSource = pClientData->State.enmSource; 1342 1342 1343 RT_ZERO(creationCtx.Interface);1344 1343 creationCtx.Interface.pfnTransferOpen = vboxSvcClipboardURITransferOpen; 1345 1344 creationCtx.Interface.pfnTransferClose = vboxSvcClipboardURITransferClose; -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-utils.cpp
r80283 r80374 102 102 case VBOX_SHARED_CLIPBOARD_HOST_MSG_URI_TRANSFER_START: 103 103 { 104 Assert(pClientData->State.URI.fTransferStart == false); 105 104 106 LogFlowFunc(("VBOX_SHARED_CLIPBOARD_HOST_MSG_URI_TRANSFER_START\n")); 105 107 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r79630 r80374 166 166 /* Clipboard was updated by another application, retrieve formats and report back. */ 167 167 int rc = vboxClipboardSvcWinSyncInternal(pCtx); 168 AssertRC(rc); 169 170 vboxSvcClipboardSetSource(pCtx->pClientData, SHAREDCLIPBOARDSOURCE_LOCAL); 168 if (RT_SUCCESS(rc)) 169 vboxSvcClipboardSetSource(pCtx->pClientData, SHAREDCLIPBOARDSOURCE_LOCAL); 171 170 } 172 171 } break; … … 295 294 } break; 296 295 297 case VBOX_CLIPBOARD_WM_ SET_FORMATS:298 { 299 LogFunc(("VBOX_CLIPBOARD_WM_ SET_FORMATS\n"));296 case VBOX_CLIPBOARD_WM_REPORT_FORMATS: 297 { 298 LogFunc(("VBOX_CLIPBOARD_WM_REPORT_FORMATS\n")); 300 299 301 300 if ( pCtx->pClientData == NULL … … 305 304 * because host clipboard has more priority. 306 305 */ 307 LogFunc(("VBOX_CLIPBOARD_WM_ SET_FORMATS ignored; pClientData=%p\n", pCtx->pClientData));306 LogFunc(("VBOX_CLIPBOARD_WM_REPORT_FORMATS ignored; pClientData=%p\n", pCtx->pClientData)); 308 307 break; 309 308 } … … 351 350 LogFunc(("Failed with rc=%Rrc\n", rc)); 352 351 } 353 LogFunc(("VBOX_CLIPBOARD_WM_ SET_FORMATS: fFormats=0x%x, lastErr=%ld\n", fFormats, GetLastError()));352 LogFunc(("VBOX_CLIPBOARD_WM_REPORT_FORMATS: fFormats=0x%x, lastErr=%ld\n", fFormats, GetLastError())); 354 353 } break; 355 354 … … 689 688 * The guest announced formats. Forward to the window thread. 690 689 */ 691 PostMessage(pCtx->Win.hWnd, VBOX_CLIPBOARD_WM_ SET_FORMATS,690 PostMessage(pCtx->Win.hWnd, VBOX_CLIPBOARD_WM_REPORT_FORMATS, 692 691 0 /* wParam */, u32Formats /* lParam */); 693 692 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r80359 r80374 1183 1183 if (u32Formats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST) 1184 1184 { 1185 /* Tell the guest that we want to start a (reading) transfer. */ 1185 /* Tell the guest that we want to start a reading transfer 1186 * (from guest to the host). */ 1186 1187 rc = vboxSvcClipboardReportMsg(pClientData, VBOX_SHARED_CLIPBOARD_HOST_MSG_URI_TRANSFER_START, 1187 1188 0 /* u32Formats == 0 means reading data */); … … 1293 1294 else 1294 1295 { 1295 #endif 1296 #endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */ 1296 1297 void *pv; 1297 1298 uint32_t cb;
Note:
See TracChangeset
for help on using the changeset viewer.