Changeset 2029 in vbox for trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
- Timestamp:
- Apr 11, 2007 1:23:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r2019 r2029 1330 1330 Bstr hdaFileBstr = hdaFile; 1331 1331 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) 1339 1334 { 1340 1335 /* we've not found the image */ 1341 1336 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) 1346 1339 virtualBox->RegisterHardDisk (hardDisk); 1347 }1348 1340 } 1349 1341 /* do we have the right image now? */
Note:
See TracChangeset
for help on using the changeset viewer.