VirtualBox

Changeset 28352 in vbox


Ignore:
Timestamp:
Apr 15, 2010 12:20:21 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60112
Message:

Main/Machine: RTProcCreate on Windows can finally handle spaces, remove the old workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r28343 r28352  
    55055505
    55065506        Utf8Str idStr = mData->mUuid.toString();
    5507 # ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
    5508         const char * args[] = {szPath, "--startvm", idStr.c_str(), "--no-startvm-errormsgbox", 0 };
    5509 # else
    55105507        Utf8Str strName = mUserData->mName;
    55115508        const char * args[] = {szPath, "--comment", strName.c_str(), "--startvm", idStr.c_str(), "--no-startvm-errormsgbox", 0 };
    5512 # endif
    55135509        vrc = RTProcCreate(szPath, args, env, 0, &pid);
    55145510    }
     
    55285524
    55295525        Utf8Str idStr = mData->mUuid.toString();
    5530 # ifdef RT_OS_WINDOWS
    5531         const char * args[] = {szPath, "--startvm", idStr.c_str(), 0 };
    5532 # else
    55335526        Utf8Str strName = mUserData->mName;
    55345527        const char * args[] = {szPath, "--comment", strName.c_str(), "--startvm", idStr.c_str(), 0 };
    5535 # endif
    55365528        vrc = RTProcCreate(szPath, args, env, 0, &pid);
    55375529    }
     
    55575549        Utf8Str idStr = mData->mUuid.toString();
    55585550        /* Leave space for 2 args, as "headless" needs --vrdp off on non-OSE. */
    5559 # ifdef RT_OS_WINDOWS
    5560         const char * args[] = {szPath, "--startvm", idStr.c_str(), 0, 0, 0 };
    5561 # else
    55625551        Utf8Str strName = mUserData->mName;
    55635552        const char * args[] = {szPath, "--comment", strName.c_str(), "--startvm", idStr.c_str(), 0, 0, 0 };
    5564 # endif
    55655553#ifdef VBOX_WITH_VRDP
    55665554        if (strType == "headless")
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