Changeset 28211 in vbox for trunk/src/VBox
- Timestamp:
- Apr 12, 2010 2:53:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r28192 r28211 1911 1911 /* try to find the given machine */ 1912 1912 ComPtr <IMachine> machine; 1913 Bstr uuid 1914 if (!Guid 1915 { 1916 CHECK_ERROR (a->virtualBox, GetMachine(uuid, machine.asOutParam()));1917 } 1918 else 1919 { 1920 CHECK_ERROR (a->virtualBox, FindMachine(Bstr(VMNameOrUuid), machine.asOutParam()));1921 if (SUCCEEDED 1922 machine->COMGETTER(Id) 1923 } 1924 if (FAILED 1913 Bstr uuid(VMNameOrUuid); 1914 if (!Guid(VMNameOrUuid).isEmpty()) 1915 { 1916 CHECK_ERROR(a->virtualBox, GetMachine(uuid, machine.asOutParam())); 1917 } 1918 else 1919 { 1920 CHECK_ERROR(a->virtualBox, FindMachine(Bstr(VMNameOrUuid), machine.asOutParam())); 1921 if (SUCCEEDED(rc)) 1922 machine->COMGETTER(Id)(uuid.asOutParam()); 1923 } 1924 if (FAILED(rc)) 1925 1925 return 1; 1926 1926 … … 1932 1932 { 1933 1933 ULONG64 uOffset = 0; 1934 Bstr uuid;1935 1934 SafeArray<BYTE> aLogData; 1936 1935 ULONG cbLogData; … … 1977 1976 1978 1977 /* open an existing session for the VM */ 1979 rc = a->virtualBox->OpenExistingSession 1978 rc = a->virtualBox->OpenExistingSession(a->session, uuid); 1980 1979 if (SUCCEEDED(rc)) 1981 1980 /* get the session machine */ … … 1991 1990 } 1992 1991 1993 return SUCCEEDED 1992 return SUCCEEDED(rc) ? 0 : 1; 1994 1993 } 1995 1994
Note:
See TracChangeset
for help on using the changeset viewer.