Changeset 27250 in vbox
- Timestamp:
- Mar 10, 2010 2:40:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r26782 r27250 702 702 id = asGuidStr(ValueUnion.psz); 703 703 /* If the argument was not a UUID, then it must be a name. */ 704 if ( !id)704 if (id.isEmpty()) 705 705 name = ValueUnion.psz; 706 706 break; … … 809 809 #endif /* defined VBOX_FFMPEG */ 810 810 811 if ( !id&& !name)811 if (id.isEmpty() && !name) 812 812 { 813 813 show_usage(); … … 855 855 856 856 /* find ID by name */ 857 if ( !id)857 if (id.isEmpty()) 858 858 { 859 859 ComPtr <IMachine> m; … … 865 865 } 866 866 m->COMGETTER(Id)(id.asOutParam()); 867 867 868 AssertComRC(rc); 868 869 if (FAILED(rc)) … … 872 873 Log(("VBoxHeadless: Opening a session with machine (id={%s})...\n", 873 874 Utf8Str(id).raw())); 874 875 875 876 // open a session 876 877 CHECK_ERROR_BREAK(virtualBox, OpenSession(session, id));
Note:
See TracChangeset
for help on using the changeset viewer.