Changeset 92846 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 9, 2021 12:33:57 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148774
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r92845 r92846 633 633 if (lp != NULL) 634 634 { 635 rc = VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, fFormat, lp, (uint32_t)GlobalSize(hClip)); 635 /* Unwrap clipboard content from CF_HTML format if needed. */ 636 if (SharedClipboardWinIsCFHTML((const char *)lp)) 637 { 638 char *pszBuf = NULL; 639 uint32_t cbBuf = 0; 640 641 rc = SharedClipboardWinConvertCFHTMLToMIME((const char *)lp, (uint32_t)GlobalSize(hClip), &pszBuf, &cbBuf); 642 if (RT_SUCCESS(rc)) 643 { 644 rc = VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, fFormat, pszBuf, cbBuf); 645 RTMemFree(pszBuf); 646 } 647 } 648 else 649 rc = VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, fFormat, lp, (uint32_t)GlobalSize(hClip)); 636 650 637 651 GlobalUnlock(hClip);
Note:
See TracChangeset
for help on using the changeset viewer.