Changeset 83419 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Mar 25, 2020 4:49:34 PM (5 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r83405 r83419 48 48 49 49 #include <memory> /* For auto_ptr. */ 50 #include <algorithm> /* For std::rotate. */ 50 51 51 52 #include <iprt/asm.h> … … 1081 1082 AssertPtr(pGuest); 1082 1083 1084 const uint64_t fGuestControlFeatures0 = pGuest->i_getGuestControlFeatures0(); 1085 1083 1086 /* If the Guest Additions don't support using argv[0] correctly (< 6.1.x), don't supply it. */ 1084 if (! RT_BOOL(pGuest->i_getGuestControlFeatures0()& VBOX_GUESTCTRL_GF_0_PROCESS_ARGV0))1087 if (!(fGuestControlFeatures0 & VBOX_GUESTCTRL_GF_0_PROCESS_ARGV0)) 1085 1088 vrc = RTGetOptArgvToString(&pszArgs, papszArgv + 1, RTGETOPTARGV_CNV_QUOTE_BOURNE_SH); 1086 1089 else /* ... else send the whole argv, including argv[0]. */ -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r83336 r83419 4127 4127 procInfo.mExecutable = pszExecutable; 4128 4128 if (aArguments.size()) 4129 { 4129 4130 for (size_t i = 0; i < aArguments.size(); i++) 4130 4131 procInfo.mArguments.push_back(aArguments[i]); 4132 } 4133 else /* If no arguments were given, add the executable as argv[0] by default. */ 4134 procInfo.mArguments.push_back(procInfo.mExecutable); 4131 4135 4132 4136 /* Combine the environment changes associated with the ones passed in by
Note:
See TracChangeset
for help on using the changeset viewer.