Changeset 46524 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
- Timestamp:
- Jun 13, 2013 12:10:23 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86380
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-4.2/src/VBox (added) merged: 86229-86230,86234
- Property svn:mergeinfo changed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r46009 r46524 261 261 " [--source <guest additions .ISO>] [--verbose]\n" 262 262 " [--wait-start]\n" 263 " [-- [<argument1>] ... [<argumentN>]]\n" 263 264 "\n", pcszSep1, pcszSep2); 264 265 } … … 633 634 com::SafeArray<ProcessCreateFlag_T> aCreateFlags; 634 635 com::SafeArray<ProcessWaitForFlag_T> aWaitFlags; 635 com::SafeArray<IN_BSTR> a rgs;636 com::SafeArray<IN_BSTR> env;636 com::SafeArray<IN_BSTR> aArgs; 637 com::SafeArray<IN_BSTR> aEnv; 637 638 Utf8Str strUsername; 638 639 Utf8Str strPassword; … … 669 670 return errorSyntax(USAGE_GUESTCONTROL, "Failed to parse environment value, rc=%Rrc", vrc); 670 671 for (int j = 0; j < cArgs; j++) 671 env.push_back(Bstr(papszArg[j]).raw());672 aEnv.push_back(Bstr(papszArg[j]).raw()); 672 673 673 674 RTGetOptArgvFree(papszArg); … … 742 743 case VINF_GETOPT_NOT_OPTION: 743 744 { 744 if (a rgs.size() == 0 && strCmd.isEmpty())745 if (aArgs.size() == 0 && strCmd.isEmpty()) 745 746 strCmd = ValueUnion.psz; 746 747 else 747 a rgs.push_back(Bstr(ValueUnion.psz).raw());748 aArgs.push_back(Bstr(ValueUnion.psz).raw()); 748 749 break; 749 750 } … … 837 838 ComPtr<IGuestProcess> pProcess; 838 839 rc = pGuestSession->ProcessCreate(Bstr(strCmd).raw(), 839 ComSafeArrayAsInParam(a rgs),840 ComSafeArrayAsInParam( env),840 ComSafeArrayAsInParam(aArgs), 841 ComSafeArrayAsInParam(aEnv), 841 842 ComSafeArrayAsInParam(aCreateFlags), 842 843 cMsTimeout, … … 2652 2653 */ 2653 2654 Utf8Str strSource; 2655 com::SafeArray<IN_BSTR> aArgs; 2654 2656 bool fVerbose = false; 2655 2657 bool fWaitStartOnly = false; … … 2684 2686 fWaitStartOnly = true; 2685 2687 break; 2688 2689 case VINF_GETOPT_NOT_OPTION: 2690 { 2691 if (aArgs.size() == 0 && strSource.isEmpty()) 2692 strSource = ValueUnion.psz; 2693 else 2694 aArgs.push_back(Bstr(ValueUnion.psz).raw()); 2695 break; 2696 } 2686 2697 2687 2698 default: … … 2731 2742 ComPtr<IProgress> pProgress; 2732 2743 CHECK_ERROR(guest, UpdateGuestAdditions(Bstr(strSource).raw(), 2744 ComSafeArrayAsInParam(aArgs), 2733 2745 /* Wait for whole update process to complete. */ 2734 2746 ComSafeArrayAsInParam(aUpdateFlags),
Note:
See TracChangeset
for help on using the changeset viewer.