VirtualBox

Ignore:
Timestamp:
Jul 25, 2022 4:00:26 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152543
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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.

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