VirtualBox

Changeset 42162 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 16, 2012 12:26:39 PM (13 years ago)
Author:
vboxsync
Message:

Build fix, warnings.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestProcessImpl.h

    r42160 r42162  
    7575    int readData(ULONG aHandle, ULONG aSize, ULONG aTimeoutMS, ComSafeArrayOut(BYTE, aData));
    7676    int startProcess(void);
    77     static DECLCALLBACK(int) GuestProcess::startProcessThread(RTTHREAD Thread, void *pvUser);
     77    static DECLCALLBACK(int) startProcessThread(RTTHREAD Thread, void *pvUser);
    7878    int terminateProcess(void);
    7979    int waitFor(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitReason_T *aReason);
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r42160 r42162  
    3030#include "VMMDev.h"
    3131
     32#include <memory> /* For auto_ptr. */
     33
    3234#include <iprt/asm.h>
    3335#include <iprt/getopt.h>
     
    159161    for (ProcessArguments::const_iterator it = mData.mProcess.mArguments.begin();
    160162         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();
    164166    }
    165167
     
    186188    for (ProcessEnvironmentMap::const_iterator it = mData.mProcess.mEnvironment.begin();
    187189         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();
    191194    }
    192195
     
    467470            {
    468471                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;
    470475                    break;
     476                }
    471477                AssertPtr(pszEnv);
    472478                rc = prepareExecuteEnv(pszEnv, &pvEnv, &cbEnv, &cEnvBuild);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette