Changeset 27996 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 6, 2010 9:48:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r27976 r27996 83 83 Utf8Str Utf8Cmd(a->argv[1]); 84 84 uint32_t uFlags = 0; 85 Utf8Str Utf8Args;85 com::SafeArray <BSTR> args; 86 86 com::SafeArray <BSTR> env; 87 87 Utf8Str Utf8StdIn; … … 102 102 else 103 103 { 104 Utf8Args = a->argv[i + 1]; 104 char **papszArg; 105 int cArgs; 106 107 rc = RTGetOptArgvFromString(&papszArg, &cArgs, a->argv[i + 1], NULL); 108 if (RT_SUCCESS(rc)) 109 { 110 for (int a = 0; a < cArgs; a++) 111 args.push_back(Bstr(papszArg[a])); 112 113 RTGetOptArgvFree(papszArg); 114 } 105 115 ++i; 106 116 } … … 215 225 ComPtr<IProgress> progress; 216 226 ULONG uPID = 0; 217 CHECK_ERROR_BREAK(guest, ExecuteProgram(Bstr(Utf8Cmd), uFlags, 218 Bstr(Utf8Args), ComSafeArrayAsInParam(env),227 CHECK_ERROR_BREAK(guest, ExecuteProgram(Bstr(Utf8Cmd), uFlags, 228 ComSafeArrayAsInParam(args), ComSafeArrayAsInParam(env), 219 229 Bstr(Utf8StdIn), Bstr(Utf8StdOut), Bstr(Utf8StdErr), 220 230 Bstr(Utf8UserName), Bstr(Utf8Password), uTimeoutMS,
Note:
See TracChangeset
for help on using the changeset viewer.