Changeset 28248 in vbox for trunk/src/VBox
- Timestamp:
- Apr 13, 2010 12:52:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r28247 r28248 71 71 static int handleExecProgram(HandlerArg *a) 72 72 { 73 HRESULT rc = S_OK;74 75 73 /* 76 74 * Check the syntax. We can deduce the correct syntax from the number of 77 75 * arguments. 78 76 */ 79 bool usageOK = true;80 77 if (a->argc < 2) /* At least the command we want to execute in the guest should be present :-). */ 81 78 return errorSyntax(USAGE_GUESTCONTROL, "Incorrect parameters"); … … 95 92 96 93 /* Iterate through all possible commands (if available). */ 94 bool usageOK = true; 97 95 for (int i = 2; usageOK && i < a->argc; i++) 98 96 { … … 215 213 ComPtr<IMachine> machine; 216 214 /* assume it's an UUID */ 217 rc = a->virtualBox->GetMachine(Bstr(a->argv[0]), machine.asOutParam());215 HRESULT rc = a->virtualBox->GetMachine(Bstr(a->argv[0]), machine.asOutParam()); 218 216 if (FAILED(rc) || !machine) 219 217 { … … 221 219 CHECK_ERROR(a->virtualBox, FindMachine(Bstr(a->argv[0]), machine.asOutParam())); 222 220 } 221 223 222 if (machine) 224 223 { … … 279 278 280 279 /* switch (cmd) */ 281 if (strcmp(a->argv[0], "exec") == 0) 280 if ( strcmp(a->argv[0], "exec") == 0 281 || strcmp(a->argv[0], "execute") == 0) 282 282 return handleExecProgram(&arg); 283 283
Note:
See TracChangeset
for help on using the changeset viewer.