VirtualBox

Changeset 26193 in vbox


Ignore:
Timestamp:
Feb 3, 2010 2:18:45 PM (15 years ago)
Author:
vboxsync
Message:

Main: fix r56875 which broke Machine::GetSnapshot(NULL) which is documented to return the root snapshot

File:
1 edited

Legend:

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

    r26186 r26193  
    33393339    Guid uuid(aId);
    33403340    /* Todo: fix this properly by perhaps introducing an isValid method for the Guid class */
    3341     if (    aId
    3342         &&  uuid.isEmpty())
     3341    if (    (aId)
     3342        &&  (*aId != '\0')      // an empty Bstr means "get root snapshot", so don't fail on that
     3343        &&  (uuid.isEmpty()))
    33433344    {
    33443345        RTUUID uuidTemp;
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