Changeset 80824 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Sep 16, 2019 1:18:44 PM (5 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r80787 r80824 3358 3358 HRESULT Machine::launchVMProcess(const ComPtr<ISession> &aSession, 3359 3359 const com::Utf8Str &aName, 3360 const com::Utf8Str &aEnvironment,3360 const std::vector<com::Utf8Str> &aEnvironmentChanges, 3361 3361 ComPtr<IProgress> &aProgress) 3362 3362 { … … 3435 3435 if (SUCCEEDED(rc)) 3436 3436 { 3437 rc = i_launchVMProcess(control, strFrontend, aEnvironment , progress);3437 rc = i_launchVMProcess(control, strFrontend, aEnvironmentChanges, progress); 3438 3438 if (SUCCEEDED(rc)) 3439 3439 { … … 7370 7370 HRESULT Machine::i_launchVMProcess(IInternalSessionControl *aControl, 7371 7371 const Utf8Str &strFrontend, 7372 const Utf8Str &strEnvironment,7372 const std::vector<com::Utf8Str> &aEnvironmentChanges, 7373 7373 ProgressProxy *aProgress) 7374 7374 { … … 7606 7606 if (FAILED(rc)) 7607 7607 return setError(rc, tr("Failed to start the machine '%s'. CoSetProxyBlanket failed"), strMachineName.c_str()); 7608 7609 size_t const cEnvVars = aEnvironmentChanges.size(); 7610 com::SafeArray<IN_BSTR> aBstrEnvironmentChanges(cEnvVars); 7611 for (size_t i = 0; i < cEnvVars; i++) 7612 aBstrEnvironmentChanges[i] = Bstr(aEnvironmentChanges[i]).raw(); 7613 7608 7614 ULONG uPid = 0; 7609 7615 rc = pVBoxSDS->LaunchVMProcess(Bstr(idStr).raw(), Bstr(strMachineName).raw(), Bstr(strFrontend).raw(), 7610 Bstr(strEnvironment).raw(), Bstr(strSupHardeningLogArg).raw(),7616 ComSafeArrayAsInParam(aBstrEnvironmentChanges), Bstr(strSupHardeningLogArg).raw(), 7611 7617 idCallerSession, &uPid); 7612 7618 if (FAILED(rc)) … … 7617 7623 #endif /* VBOX_WITH_VBOXSDS && RT_OS_WINDOWS */ 7618 7624 { 7619 int vrc = MachineLaunchVMCommonWorker(idStr, strMachineName, strFrontend, strEnvironment, strSupHardeningLogArg,7625 int vrc = MachineLaunchVMCommonWorker(idStr, strMachineName, strFrontend, aEnvironmentChanges, strSupHardeningLogArg, 7620 7626 strAppOverride, 0 /*fFlags*/, NULL /*pvExtraData*/, pid); 7621 7627 if (RT_FAILURE(vrc)) -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r80754 r80824 1157 1157 /** @todo This needs to be the same in OSE and non-OSE, preferrably 1158 1158 * only changing when actual API changes happens. */ 1159 uRevision |= 0;1159 uRevision |= 1; 1160 1160 1161 1161 *aAPIRevision = uRevision;
Note:
See TracChangeset
for help on using the changeset viewer.