VirtualBox

Changeset 35666 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 21, 2011 12:05:29 PM (14 years ago)
Author:
vboxsync
Message:

SDL frontend: fixed starting SDL VMs using API

File:
1 edited

Legend:

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

    r35287 r35666  
    13331333
    13341334    /*
    1335      * Do we have a name but no UUID?
     1335     * Do we have a UUID?
    13361336     */
    1337     if (vmName && uuidVM.isEmpty())
    1338     {
     1337    if (!uuidVM.isEmpty())
     1338    {
     1339        rc = pVirtualBox->FindMachine(uuidVM.toUtf16().raw(), pMachine.asOutParam());
     1340        if (FAILED(rc) || !pMachine)
     1341        {
     1342            RTPrintf("Error: machine with the given ID not found!\n");
     1343            goto leave;
     1344        }
     1345    }
     1346    else if (vmName)
     1347    {
     1348        /*
     1349         * Do we have a name but no UUID?
     1350         */
    13391351        rc = pVirtualBox->FindMachine(Bstr(vmName).raw(), pMachine.asOutParam());
    13401352        if ((rc == S_OK) && pMachine)
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