VirtualBox

Changeset 100405 in vbox


Ignore:
Timestamp:
Jul 6, 2023 10:13:38 AM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Relaxed transfer status checks a bit when reading the transfer root list. ​​​bugref:9437

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r100393 r100405  
    818818    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
    819819
    820     AssertMsgReturn(ShClTransferGetStatus(pTransfer) == SHCLTRANSFERSTATUS_INITIALIZED,
    821                     ("Can't read root list -- wrong transfer status\n"), VERR_WRONG_ORDER);
     820    SHCLTRANSFERSTATUS const enmSts = ShClTransferGetStatus(pTransfer);
     821    AssertMsgReturn(   enmSts == SHCLTRANSFERSTATUS_INITIALIZED
     822                    || enmSts == SHCLTRANSFERSTATUS_STARTED,
     823                    ("Can't read root list -- wrong transfer status (%#x)\n", enmSts), VERR_WRONG_ORDER);
    822824
    823825    SHCLLISTHDR Hdr;
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r100393 r100405  
    17041704#ifdef DEBUG
    17051705    shClTransferLock(pTransfer);
    1706     AssertMsgReturn(pTransfer->State.enmStatus == SHCLTRANSFERSTATUS_INITIALIZED,
     1706    AssertMsgReturn(   pTransfer->State.enmStatus == SHCLTRANSFERSTATUS_INITIALIZED
     1707                    || pTransfer->State.enmStatus == SHCLTRANSFERSTATUS_STARTED,
    17071708                    ("Cannot read root list in status %s\n", ShClTransferStatusToStr(pTransfer->State.enmStatus)),
    17081709                    VERR_WRONG_ORDER);
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