VirtualBox

Ignore:
Timestamp:
Jul 5, 2010 12:56:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63339
Message:

Guest Control/Main: Be safe here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r30610 r30612  
    700700        BOOL fCancelled;
    701701        ComAssert(it->second.pProgress.isNotNull());
    702         it->second.pProgress->COMGETTER(Canceled)(&fCancelled);
    703 
    704         if (!fCancelled)
     702        if (SUCCEEDED(it->second.pProgress->COMGETTER(Canceled)(&fCancelled) && fCancelled))
     703        {
     704            it->second.pProgress->notifyComplete(VBOX_E_IPRT_ERROR, COM_IIDOF(IGuest),
     705                                                 (CBSTR)Guest::getComponentName(), Guest::tr("The output operation was cancelled"));
     706        }
     707        else
    705708            it->second.pProgress->notifyComplete(S_OK);
    706         else
    707             it->second.pProgress->notifyComplete(VBOX_E_IPRT_ERROR, COM_IIDOF(IGuest),
    708                                           (CBSTR)Guest::getComponentName(), Guest::tr("The output operation was cancelled"));
    709709    }
    710710    else
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