VirtualBox

Ignore:
Timestamp:
Apr 11, 2007 1:23:03 PM (18 years ago)
Author:
vboxsync
Message:

Main: Added IVirtualBox::findHardDisk().
VBoxSDL: Fixed so that .vmdk images can be passed using the -hda switch.

File:
1 edited

Legend:

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

    r2019 r2029  
    13301330        Bstr hdaFileBstr = hdaFile;
    13311331        ComPtr<IHardDisk> hardDisk;
    1332         ComPtr<IVirtualDiskImage> vdi;
    1333         virtualBox->FindVirtualDiskImage(hdaFileBstr, vdi.asOutParam());
    1334         if (vdi)
    1335         {
    1336             vdi.queryInterfaceTo (hardDisk.asOutParam());
    1337         }
    1338         else
     1332        virtualBox->FindHardDisk(hdaFileBstr, hardDisk.asOutParam());
     1333        if (!hardDisk)
    13391334        {
    13401335            /* we've not found the image */
    13411336            RTPrintf("Registering hard disk image %s\n", hdaFile);
    1342             virtualBox->OpenVirtualDiskImage (hdaFileBstr, vdi.asOutParam());
    1343             if (vdi)
    1344             {
    1345                 vdi.queryInterfaceTo (hardDisk.asOutParam());
     1337            virtualBox->OpenHardDisk (hdaFileBstr, hardDisk.asOutParam());
     1338            if (hardDisk)
    13461339                virtualBox->RegisterHardDisk (hardDisk);
    1347             }
    13481340        }
    13491341        /* do we have the right image now? */
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