Changeset 11088 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Aug 4, 2008 8:27:27 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34000
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r11079 r11088 53 53 54 54 static int handleGetGuestProperty(int argc, char *argv[], 55 ComPtr<IVirtualBox> virtualBox,56 ComPtr<ISession> session)55 ComPtr<IVirtualBox> aVirtualBox, 56 ComPtr<ISession> aSession) 57 57 { 58 58 HRESULT rc = S_OK; … … 66 66 ComPtr<IMachine> machine; 67 67 /* assume it's a UUID */ 68 rc = virtualBox->GetMachine(Guid(argv[0]), machine.asOutParam());68 rc = aVirtualBox->GetMachine(Guid(argv[0]), machine.asOutParam()); 69 69 if (FAILED(rc) || !machine) 70 70 { 71 71 /* must be a name */ 72 CHECK_ERROR( virtualBox, FindMachine(Bstr(argv[0]), machine.asOutParam()));72 CHECK_ERROR(aVirtualBox, FindMachine(Bstr(argv[0]), machine.asOutParam())); 73 73 } 74 74 if (machine) 75 75 { 76 Guid uuid; 77 machine->COMGETTER(Id)(uuid.asOutParam()); 78 79 /* open a session for the VM */ 80 CHECK_ERROR_RET (aVirtualBox, OpenSession(aSession, uuid), 1); 81 82 /* get the mutable session machine */ 83 aSession->COMGETTER(Machine)(machine.asOutParam()); 84 76 85 Bstr value; 77 86 uint64_t u64Timestamp; … … 222 231 if (machine) 223 232 { 233 Guid uuid; 234 machine->COMGETTER(Id)(uuid.asOutParam()); 235 236 /* open a session for the VM */ 237 CHECK_ERROR_RET (aVirtualBox, OpenSession(aSession, uuid), 1); 238 239 /* get the mutable session machine */ 240 aSession->COMGETTER(Machine)(machine.asOutParam()); 241 224 242 com::SafeArray <BSTR> names; 225 243 com::SafeArray <BSTR> values;
Note:
See TracChangeset
for help on using the changeset viewer.