VirtualBox

Changeset 95821 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 25, 2022 4:00:26 PM (2 years ago)
Author:
vboxsync
Message:

DnD: Added GuestHost/DnDUtils module for various utility functions, (release2) log the acknowledged / pending actions by the guest, to make it easier in the future to diagnose DnD errors. bugref:10267

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r95741 r95821  
    11621162        src-client/GuestDnDPrivate.cpp \
    11631163        src-client/GuestDnDSourceImpl.cpp \
    1164         src-client/GuestDnDTargetImpl.cpp
     1164        src-client/GuestDnDTargetImpl.cpp \
     1165        $(PATH_ROOT)/src/VBox/GuestHost/DragAndDrop/DnDUtils.cpp
    11651166endif
    11661167ifdef VBOX_WITH_XPCOM
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r93115 r95821  
    571571            AssertReturn(sizeof(DragAndDropSvc::VBOXDNDCBHGACKOPDATA) == cbParms, VERR_INVALID_PARAMETER);
    572572            AssertReturn(DragAndDropSvc::CB_MAGIC_DND_HG_ACK_OP == pCBData->hdr.uMagic, VERR_INVALID_PARAMETER);
     573
     574            LogRel2(("DnD: Guest responded with action '%s' for host->guest drag event\n", DnDActionToStr(pCBData->uAction)));
    573575
    574576            setActionDefault(pCBData->uAction);
     
    628630            AssertReturn(DragAndDropSvc::CB_MAGIC_DND_GH_ACK_PENDING == pCBData->hdr.uMagic, VERR_INVALID_PARAMETER);
    629631
     632            LogRel2(("DnD: Host responded with default action '%s' (%RU32 bytes format data) to guest->host drag event\n",
     633                     DnDActionToStr(pCBData->uDefAction), pCBData->cbFormat));
     634
    630635            if (   pCBData->cbFormat  == 0
    631636                || pCBData->cbFormat  > _64K /** @todo Make the maximum size configurable? */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette