VirtualBox

Changeset 27250 in vbox


Ignore:
Timestamp:
Mar 10, 2010 2:40:30 PM (15 years ago)
Author:
vboxsync
Message:

Frontends/VBoxHeadless: fixed starting VMs with names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r26782 r27250  
    702702                id = asGuidStr(ValueUnion.psz);
    703703                /* If the argument was not a UUID, then it must be a name. */
    704                 if (!id)
     704                if (id.isEmpty())
    705705                    name = ValueUnion.psz;
    706706                break;
     
    809809#endif /* defined VBOX_FFMPEG */
    810810
    811     if (!id && !name)
     811    if (id.isEmpty() && !name)
    812812    {
    813813        show_usage();
     
    855855
    856856        /* find ID by name */
    857         if (!id)
     857        if (id.isEmpty())
    858858        {
    859859            ComPtr <IMachine> m;
     
    865865            }
    866866            m->COMGETTER(Id)(id.asOutParam());
     867
    867868            AssertComRC(rc);
    868869            if (FAILED(rc))
     
    872873        Log(("VBoxHeadless: Opening a session with machine (id={%s})...\n",
    873874              Utf8Str(id).raw()));
    874 
     875       
    875876        // open a session
    876877        CHECK_ERROR_BREAK(virtualBox, OpenSession(session, id));
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