Changeset 78307 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
- Timestamp:
- Apr 26, 2019 6:41:46 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r78172 r78307 78 78 int vboxrc = VBoxClipboardWinGetFormats(&pCtx->Win, &uFormats); 79 79 if (RT_SUCCESS(vboxrc)) 80 vboxrc = VbglR3Clipboard ReportFormats(pCtx->u32ClientID, uFormats);80 vboxrc = VbglR3ClipboardWriteFormats(pCtx->u32ClientID, uFormats); 81 81 } 82 82 } … … 128 128 int vboxrc = VBoxClipboardWinGetFormats(pWinCtx, &uFormats); 129 129 if (RT_SUCCESS(vboxrc)) 130 vboxrc = VbglR3Clipboard ReportFormats(pCtx->u32ClientID, uFormats);130 vboxrc = VbglR3ClipboardWriteFormats(pCtx->u32ClientID, uFormats); 131 131 } 132 132 … … 386 386 } 387 387 388 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 389 if (u32Formats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST) 390 hClip = SetClipboardData(CF_HDROP, NULL); 391 #endif 388 392 VBoxClipboardWinClose(); 389 393 … … 466 470 } 467 471 } 468 472 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 473 else if (u32Formats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST) 474 { 475 hClip = GetClipboardData(CF_HDROP); 476 if (hClip) 477 { 478 HDROP hDrop = (HDROP)GlobalLock(hClip); 479 if (hDrop) 480 { 481 vboxrc = VbglR3ClipboardWriteData(pCtx->u32ClientID, VBOX_SHARED_CLIPBOARD_FMT_URI_LIST, 482 ); 483 GlobalUnlock(hClip); 484 } 485 else 486 { 487 hClip = NULL; 488 } 489 } 490 } 491 #endif 469 492 VBoxClipboardWinClose(); 470 493 }
Note:
See TracChangeset
for help on using the changeset viewer.