VirtualBox

Changeset 7034 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 20, 2008 1:29:17 PM (17 years ago)
Author:
vboxsync
Message:

Fixed unlinking bug in the object cleanup routine that would screw up the linked list (GVMM:iUsedHead) if the VM wasn't at the head of it. (inverted loop condition)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r7018 r7034  
    834834        uint16_t iPrev = pGVMM->iUsedHead;
    835835        int c = RT_ELEMENTS(pGVMM->aHandles) + 2;
    836         while (!iPrev)
     836        while (iPrev)
    837837        {
    838838            if (RT_UNLIKELY(iPrev >= RT_ELEMENTS(pGVMM->aHandles)))
     
    861861        }
    862862
     863        Assert(pGVMM->aHandles[iPrev].iNext == iHandle);
    863864        pGVMM->aHandles[iPrev].iNext = pHandle->iNext;
    864865    }
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