Changeset 28165 in vbox for trunk/src/VBox/Main/ApplianceImpl.cpp
- Timestamp:
- Apr 11, 2010 7:15:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r28162 r28165 564 564 565 565 /** 566 * Little shortcut to SystemProperties::DefaultHardDiskFolder. 567 * @param str 568 * @return 569 */ 570 HRESULT Appliance::getDefaultHardDiskFolder(Utf8Str &str) const 571 { 572 /* We need the default path for storing disk images */ 573 ComPtr<ISystemProperties> systemProps; 574 HRESULT rc = mVirtualBox->COMGETTER(SystemProperties)(systemProps.asOutParam()); 575 if (FAILED(rc)) return rc; 576 Bstr bstrDefaultHardDiskFolder; 577 rc = systemProps->COMGETTER(DefaultHardDiskFolder)(bstrDefaultHardDiskFolder.asOutParam()); 578 if (FAILED(rc)) return rc; 579 str = bstrDefaultHardDiskFolder; 580 581 return S_OK; 582 } 583 584 /** 566 585 * Called from the import and export background threads to synchronize the second 567 586 * background disk thread's progress object with the current progress object so
Note:
See TracChangeset
for help on using the changeset viewer.