VirtualBox

Changeset 24323 in vbox for trunk/src


Ignore:
Timestamp:
Nov 4, 2009 12:51:39 PM (15 years ago)
Author:
vboxsync
Message:

MachineImpl: fixed instance number incrementing loop

File:
1 edited

Legend:

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

    r24316 r24323  
    37673767            ULONG ulCurInst = (*it)->instance();
    37683768
    3769             if (ulCurInst > ulInstance)
    3770                 ulInstance = ulCurInst;
    3771         }
    3772     }
    3773     if (ulInstance)
    3774         ulInstance++;
     3769            if (ulCurInst >= ulInstance)
     3770                ulInstance = ulCurInst + 1;
     3771        }
     3772    }
    37753773
    37763774    rc = ctrl->init(this, aName, aConnectionType, ulInstance);
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