VirtualBox

Changeset 97761 in vbox


Ignore:
Timestamp:
Dec 7, 2022 3:57:36 PM (2 years ago)
Author:
vboxsync
Message:

DnD/Main: Don't set any (new) progress if the progress object already has been completed and/or cancelled [addendum to r154824].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r97760 r97761  
    452452            LogRel(("DnD: Guest reported error %Rrc\n", rcOp));
    453453
    454             if (   !fCompleted
    455                 && !fCanceled)
     454            if (!fCompleted)
    456455                hr = m_pProgress->i_notifyComplete(VBOX_E_DND_ERROR,
    457456                                                   COM_IIDOF(IGuest),
     
    465464            LogRel2(("DnD: Guest cancelled operation\n"));
    466465
    467             if (   !fCompleted
    468                 && !fCanceled)
     466            if (!fCanceled)
    469467            {
    470468                hr = m_pProgress->Cancel();
    471469                AssertComRC(hr);
     470            }
     471
     472            if (!fCompleted)
     473            {
    472474                hr = m_pProgress->i_notifyComplete(S_OK);
    473475                AssertComRC(hr);
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