Changeset 78725 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
- Timestamp:
- May 24, 2019 1:15:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r78581 r78725 393 393 if (pWinCtx->URI.cTransfers == 0) /* Only allow one transfer at a time for now. */ 394 394 { 395 pWinCtx->URI.Transfer.pDataObj = new VBoxClipboardWinDataObject( /* No additional formats needed right now */);395 pWinCtx->URI.Transfer.pDataObj = new VBoxClipboardWinDataObject(&pWinCtx->URI.Transfer.Provider); 396 396 if (pWinCtx->URI.Transfer.pDataObj) 397 397 { 398 rc = pWinCtx->URI.Transfer.pDataObj->Init( pCtx->u32ClientID);398 rc = pWinCtx->URI.Transfer.pDataObj->Init(); 399 399 if (RT_SUCCESS(rc)) 400 400 { … … 662 662 } 663 663 664 pCtx->pEnv = pEnv; 665 664 666 if (VbglR3AutoLogonIsRemoteSession()) 665 667 { … … 668 670 return VERR_NOT_SUPPORTED; 669 671 } 672 673 int rc; 670 674 671 675 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST … … 678 682 else 679 683 LogRel(("Clipboard: Initialized OLE\n")); 684 685 rc = pCtx->Win.URI.Transfer.Provider.SetSource(SharedClipboardProvider::SourceType_VbglR3); 686 AssertRC(rc); 680 687 #endif 681 682 RT_BZERO(pCtx, sizeof(VBOXCLIPBOARDCONTEXT));683 684 pCtx->pEnv = pEnv;685 688 686 689 /* Check that new Clipboard API is available */ 687 690 VBoxClipboardWinCheckAndInitNewAPI(&pCtx->Win.newAPI); 688 691 689 intrc = VbglR3ClipboardConnect(&pCtx->u32ClientID);692 rc = VbglR3ClipboardConnect(&pCtx->u32ClientID); 690 693 if (RT_SUCCESS(rc)) 691 694 {
Note:
See TracChangeset
for help on using the changeset viewer.