Changeset 38636 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 5, 2011 1:49:45 PM (13 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/win/dllmain.cpp
r35368 r38636 46 46 47 47 // idempotent, so doesn't harm, and needed for COM embedding scenario 48 RTR3Init ();48 RTR3InitDll(0); 49 49 } 50 50 else if (dwReason == DLL_PROCESS_DETACH) -
trunk/src/VBox/Main/src-helper-apps/VBoxExtPackHelperApp.cpp
r36527 r38636 1746 1746 * Initialize IPRT and check that we're correctly installed. 1747 1747 */ 1748 int rc = RTR3Init ();1748 int rc = RTR3InitExe(argc, &argv, 0); 1749 1749 if (RT_FAILURE(rc)) 1750 1750 return RTMsgInitFailure(rc); … … 1885 1885 NOREF(hPrevInstance); NOREF(nShowCmd); NOREF(lpCmdLine); 1886 1886 1887 int rc = RTR3Init ();1887 int rc = RTR3InitExeNoArguments(0); 1888 1888 if (RT_FAILURE(rc)) 1889 1889 return RTMsgInitFailure(rc); -
trunk/src/VBox/Main/src-server/darwin/iokit.cpp
r33540 r38636 1683 1683 int main(int argc, char **argv) 1684 1684 { 1685 RTR3Init ();1685 RTR3InitExe(argc, &argv, 0); 1686 1686 1687 1687 if (1) -
trunk/src/VBox/Main/src-server/generic/OpenGLTestApp.cpp
r36344 r38636 211 211 int rc = 0; 212 212 213 RTR3Init ();213 RTR3InitExe(argc, &argv, 0); 214 214 215 215 if(argc < 2) -
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r37683 r38636 159 159 LPCTSTR lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */ 160 160 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 */ 162 164 TCHAR szTokens[] = _T("-/"); 163 165 LPCTSTR lpszToken = FindOneOf(lpCmdLine, szTokens); … … 188 190 * the support driver. 189 191 */ 190 RTR3Init(); 192 int argc = __argc; 193 char **argv = __argv; 194 RTR3InitExe(argc, &argv, 0); 191 195 192 196 /* Note that all options are given lowercase/camel case/uppercase to … … 233 237 234 238 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*/); 236 240 AssertRC(vrc); 237 241 -
trunk/src/VBox/Main/src-server/xpcom/server.cpp
r37666 r38636 789 789 * the support driver 790 790 */ 791 RTR3Init(); 791 int vrc = RTR3InitExe(argc, &argv, 0); 792 if (RT_FAILURE(vrc)) 793 return RTMsgInitFailure(vrc); 792 794 793 795 static const RTGETOPTDEF s_aOptions[] = … … 811 813 812 814 RTGETOPTSTATE GetOptState; 813 intvrc = RTGetOptInit(&GetOptState, argc, argv, &s_aOptions[0], RT_ELEMENTS(s_aOptions), 1, 0 /*fFlags*/);815 vrc = RTGetOptInit(&GetOptState, argc, argv, &s_aOptions[0], RT_ELEMENTS(s_aOptions), 1, 0 /*fFlags*/); 814 816 AssertRC(vrc); 815 817 -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r36128 r38636 201 201 * the support driver. 202 202 */ 203 RTR3Init ();203 RTR3InitExe(argc, &argv, 0); 204 204 205 205 HRESULT rc; -
trunk/src/VBox/Main/testcase/tstCollector.cpp
r35368 r38636 148 148 * the support driver. 149 149 */ 150 int rc = RTR3Init ();151 if (RT_FAILURE(rc)) 152 { 153 RTPrintf("tstCollector: RTR3Init () -> %d\n", rc);150 int rc = RTR3InitExe(argc, &argv, 0); 151 if (RT_FAILURE(rc)) 152 { 153 RTPrintf("tstCollector: RTR3InitExe() -> %d\n", rc); 154 154 return 1; 155 155 } -
trunk/src/VBox/Main/testcase/tstOVF.cpp
r37862 r38636 282 282 int main(int argc, char *argv[]) 283 283 { 284 RTR3Init ();284 RTR3InitExe(argc, &argv, 0); 285 285 286 286 HRESULT rc = S_OK; -
trunk/src/VBox/Main/webservice/vboxweb.cpp
r37167 r38636 784 784 { 785 785 // initialize runtime 786 int rc = RTR3Init ();786 int rc = RTR3InitExe(argc, &argv, 0); 787 787 if (RT_FAILURE(rc)) 788 788 return RTMsgInitFailure(rc);
Note:
See TracChangeset
for help on using the changeset viewer.