VirtualBox

Changeset 59856 in vbox


Ignore:
Timestamp:
Feb 26, 2016 3:47:54 PM (9 years ago)
Author:
vboxsync
Message:

DnD: HostServices/DragAndDrop/service.cpp: Cancel deferred client returns if they're in a wrong state when issuing a new host command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/DragAndDrop/service.cpp

    r59832 r59856  
    12421242                    /* Note: Report the current rc back to the guest. */
    12431243                    pClient->completeDeferred(rc);
    1244 
    1245                     m_clientQueue.pop_front();
    12461244                }
    12471245                /*
     
    12561254                    pClient->completeDeferred(rc);
    12571255                }
    1258                 else /* Should not happen. */
    1259                     AssertMsgFailed(("Client ID=%RU32 in wrong state with uMsg=%RU32 (next message in queue: %RU32)\n",
    1260                                      pClient->clientId(), uMsgClient, uMsgNext));
     1256                else /* Should not happen; cancel the operation on the guest. */
     1257                {
     1258                    LogFunc(("Client ID=%RU32 in wrong state with uMsg=%RU32 (next message in queue: %RU32), cancelling\n",
     1259                             pClient->clientId(), uMsgClient, uMsgNext));
     1260
     1261                    pClient->completeDeferred(VERR_CANCELLED);
     1262                }
     1263
     1264                m_clientQueue.pop_front();
    12611265            }
    12621266
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