VirtualBox

Ignore:
Timestamp:
Sep 5, 2011 1:49:45 PM (13 years ago)
Author:
vboxsync
Message:

*,IPRT: Redid the ring-3 init to always convert the arguments to UTF-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/svcmain.cpp

    r37683 r38636  
    159159    LPCTSTR lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */
    160160
    161     /* Need to parse the command line before initializing the VBox runtime. */
     161    /*
     162     * Need to parse the command line before initializing the VBox runtime.
     163     */
    162164    TCHAR szTokens[] = _T("-/");
    163165    LPCTSTR lpszToken = FindOneOf(lpCmdLine, szTokens);
     
    188190     * the support driver.
    189191     */
    190     RTR3Init();
     192    int    argc = __argc;
     193    char **argv = __argv;
     194    RTR3InitExe(argc, &argv, 0);
    191195
    192196    /* Note that all options are given lowercase/camel case/uppercase to
     
    233237
    234238    RTGETOPTSTATE   GetOptState;
    235     int vrc = RTGetOptInit(&GetOptState, __argc, __argv, &s_aOptions[0], RT_ELEMENTS(s_aOptions), 1, 0 /*fFlags*/);
     239    int vrc = RTGetOptInit(&GetOptState, argc, argv, &s_aOptions[0], RT_ELEMENTS(s_aOptions), 1, 0 /*fFlags*/);
    236240    AssertRC(vrc);
    237241
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