Changeset 80623 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Sep 6, 2019 10:05:11 AM (5 years ago)
- Location:
- trunk/src/VBox/Additions/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r80450 r80623 168 168 VBOX_SHARED_CLIPBOARD_GUEST_FN_MSG_GET, 3); 169 169 170 Msg.uContext.SetUInt32(VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_ WRITE);170 Msg.uContext.SetUInt32(VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT); 171 171 Msg.uFormats.SetUInt32(0); 172 172 Msg.fFlags.SetUInt32(0); … … 1477 1477 switch (uMsg) 1478 1478 { 1479 case VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_ WRITE:1479 case VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT: 1480 1480 { 1481 1481 rc = VbglR3ClipboardFormatsWriteRecv(&pEvent->cmdCtx, &pEvent->u.ReportFormats); … … 1649 1649 if (pCtx->uProtocolVer == 0) 1650 1650 { 1651 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_ WRITE, 1);1651 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_REPORT, 1); 1652 1652 VbglHGCMParmUInt32Set(&Msg.uFormats, pFormats->uFormats); 1653 1653 } 1654 1654 else 1655 1655 { 1656 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_ WRITE, 3);1656 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_REPORT, 3); 1657 1657 1658 1658 Msg.uContext.SetUInt32(pCtx->uContextID); … … 1680 1680 VBoxClipboardFormatsMsg Msg; 1681 1681 1682 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_ WRITE, 1);1682 VBGL_HGCM_HDR_INIT(&Msg.hdr, idClient, VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_REPORT, 1); 1683 1683 VbglHGCMParmUInt32Set(&Msg.uFormats, fFormats); 1684 1684 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceClipboard-os2.cpp
r80444 r80623 775 775 * Listener message - the host has new formats to offer. 776 776 */ 777 case WM_USER + VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_ WRITE:777 case WM_USER + VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT: 778 778 vgsvcClipboardOs2AdvertiseHostFormats(LONGFROMMP(mp1)); 779 779 break; … … 895 895 * respond do WM_RENDERFORMAT message. 896 896 */ 897 case VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_ WRITE:898 if (!WinPostMsg(g_hwndWorker, WM_USER + VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_ WRITE,897 case VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT: 898 if (!WinPostMsg(g_hwndWorker, WM_USER + VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT, 899 899 MPFROMLONG(fFormats), 0)) 900 900 VGSvcError("WinPostMsg(%lx, FORMATS,,) failed, lasterr=%#lx\n",
Note:
See TracChangeset
for help on using the changeset viewer.