Changeset 42162 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 16, 2012 12:26:39 PM (13 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestProcessImpl.h
r42160 r42162 75 75 int readData(ULONG aHandle, ULONG aSize, ULONG aTimeoutMS, ComSafeArrayOut(BYTE, aData)); 76 76 int startProcess(void); 77 static DECLCALLBACK(int) GuestProcess::startProcessThread(RTTHREAD Thread, void *pvUser);77 static DECLCALLBACK(int) startProcessThread(RTTHREAD Thread, void *pvUser); 78 78 int terminateProcess(void); 79 79 int waitFor(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitReason_T *aReason); -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r42160 r42162 30 30 #include "VMMDev.h" 31 31 32 #include <memory> /* For auto_ptr. */ 33 32 34 #include <iprt/asm.h> 33 35 #include <iprt/getopt.h> … … 159 161 for (ProcessArguments::const_iterator it = mData.mProcess.mArguments.begin(); 160 162 it != mData.mProcess.mArguments.end(); 161 ++it, ++s)162 { 163 collection[s] = Bstr( (*it)).raw();163 it++, s++) 164 { 165 collection[s] = Bstr(*it).raw(); 164 166 } 165 167 … … 186 188 for (ProcessEnvironmentMap::const_iterator it = mData.mProcess.mEnvironment.begin(); 187 189 it != mData.mProcess.mEnvironment.end(); 188 ++it, ++s) 189 { 190 collection[s] = Bstr(it->first + "=" + it->second).raw(); 190 it++, s++) 191 { 192 Bstr strEnv = it->first + Utf8Str("=") + it->second; 193 collection[s] = strEnv.raw(); 191 194 } 192 195 … … 467 470 { 468 471 char *pszEnv; 469 if (!RTStrAPrintf(&pszEnv, "%s=%s", itEnv->first, itEnv->second)) 472 if (!RTStrAPrintf(&pszEnv, "%s=%s", itEnv->first.c_str(), itEnv->second.c_str())) 473 { 474 rc = VERR_NO_MEMORY; 470 475 break; 476 } 471 477 AssertPtr(pszEnv); 472 478 rc = prepareExecuteEnv(pszEnv, &pvEnv, &cbEnv, &cEnvBuild);
Note:
See TracChangeset
for help on using the changeset viewer.