VirtualBox

Changeset 18752 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 6, 2009 12:44:57 PM (16 years ago)
Author:
vboxsync
Message:

VM.cpp: Corrected the state notification loop's handling of VMR3Destroy being called by a callback: it shouldn't break unconditionally on destroy, only if the state actually changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r18645 r18752  
    16531653#endif
    16541654#ifdef VBOX_WITH_STATISTICS
    1655 # ifndef DEBUG_dmik
    16561655    STAMR3Dump(pVM, "*");
    1657 # endif
    16581656#else
    16591657    LogRel(("************************* Statistics *************************\n"));
     
    24752473    {
    24762474        pCur->pfnAtState(pVM, enmStateNew, enmStateOld, pCur->pvUser);
    2477         if (pVM->enmVMState == VMSTATE_DESTROYING)
     2475        if (    pVM->enmVMState != enmStateNew
     2476            &&  pVM->enmVMState == VMSTATE_DESTROYING)
    24782477            break;
    24792478        AssertMsg(pVM->enmVMState == enmStateNew,
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