Changeset 2567 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
- Timestamp:
- May 9, 2007 4:38:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r2519 r2567 704 704 RTPrintf("Name: %lS\n", machineName.raw()); 705 705 706 Bstr osTypeId; 707 rc = machine->COMGETTER(OSTypeId)(osTypeId.asOutParam()); 706 708 ComPtr<IGuestOSType> osType; 709 rc = virtualBox->GetGuestOSType (osTypeId, osType.asOutParam()); 707 710 Bstr osName; 708 rc = machine->COMGETTER(OSType)(osType.asOutParam());709 711 rc = osType->COMGETTER(Description)(osName.asOutParam()); 710 712 RTPrintf("Guest OS: %lS\n", osName.raw()); … … 3196 3198 { 3197 3199 ComPtr<IGuestOSType> guestOSType; 3198 CHECK_ERROR(virtualBox, FindGuestOSType(ostype, guestOSType.asOutParam()));3200 CHECK_ERROR(virtualBox, GetGuestOSType(ostype, guestOSType.asOutParam())); 3199 3201 if (SUCCEEDED(rc) && guestOSType) 3200 3202 { 3201 CHECK_ERROR(machine, COMSETTER(OSType )(guestOSType));3203 CHECK_ERROR(machine, COMSETTER(OSTypeId)(ostype)); 3202 3204 } 3203 3205 else
Note:
See TracChangeset
for help on using the changeset viewer.