Changeset 38636 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Sep 5, 2011 1:49:45 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73843
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r38565 r38636 2831 2831 vboxVDbgVEHandlerRegister(); 2832 2832 #endif 2833 int rc = RTR3Init ();2833 int rc = RTR3InitDll(0); 2834 2834 AssertRC(rc); 2835 2835 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Additions/WINNT/SharedFolders/redirector/dll/dllmain.cpp
r31634 r38636 37 37 case DLL_PROCESS_ATTACH: 38 38 39 RTR3Init ();39 RTR3InitDll(0); 40 40 VbglR3Init(); 41 41 LogRel(("VBOXNP: DLL loaded.\n")); -
trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProv.cpp
r36454 r38636 30 30 LONG l = DllAddRef(); 31 31 32 int rc = RTR3Init (); /* Never terminate the runtime! */32 int rc = RTR3InitDll(0); /* Never terminate the runtime! */ 33 33 if (RT_FAILURE(rc)) 34 34 LogRel(("VBoxCredProv: Could not init runtime! rc = %Rrc\n", rc)); -
trunk/src/VBox/Additions/WINNT/VBoxGINA/VBoxGINA.cpp
r38313 r38636 78 78 case DLL_PROCESS_ATTACH: 79 79 { 80 RTR3Init ();80 RTR3InitDll(); 81 81 VbglR3Init(); 82 82 LogRel(("VBoxGINA: DLL loaded.\n")); -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r37423 r38636 680 680 LogRel(("VBoxTray: %s r%s\n", RTBldCfgVersion(), RTBldCfgRevisionStr())); 681 681 682 int rc = RTR3Init ();682 int rc = RTR3InitExeNoArguments(0); 683 683 if (RT_SUCCESS(rc)) 684 684 { -
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r33540 r38636 1542 1542 bool fOnlyInfo = false; 1543 1543 1544 rrc = RTR3Init ();1544 rrc = RTR3InitExe(argc, &argv, 0); 1545 1545 if (RT_FAILURE(rrc)) 1546 1546 return RTMsgInitFailure(rrc); -
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r38633 r38636 597 597 * Init globals and such. 598 598 */ 599 int rc = RTR3Init ();599 int rc = RTR3InitExe(argc, &argv, 0); 600 600 if (RT_FAILURE(rc)) 601 601 return RTMsgInitFailure(rc); -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp
r38633 r38636 1185 1185 1186 1186 /* 1187 * The input is ASSUMED to be in the current process codeset (NT guarantees1188 * ACP, unixy systems doesn't guarantee anything). This loop converts all1189 * the argv[*] strings to UTF-8, which is a tad ugly but who cares.1190 * (As a rule all strings in VirtualBox are UTF-8.)1191 */1192 for (int i = 0; i < argc; i++)1193 {1194 char *pszConverted;1195 int rc = RTStrCurrentCPToUtf8(&pszConverted, argv[i]);1196 if (RT_SUCCESS(rc))1197 argv[i] = pszConverted;1198 else1199 {1200 RTMsgError("Failed to convert argument %d to UTF-8, rc=%Rrc\n",1201 i + 1, rc);1202 1203 /* Conversion was not possible,probably due to invalid characters.1204 * Keep in mind that we do RTStrFree on the whole array below. */1205 argv[i] = RTStrDup(argv[i]);1206 }1207 }1208 1209 /*1210 1187 * Invoke the handler. 1211 1188 */ … … 1213 1190 *prcExit = pfnHandler(argc, argv); 1214 1191 1215 /*1216 * Free converted argument vector1217 */1218 for (int i = 0; i < argc; i++)1219 {1220 RTStrFree(argv[i]);1221 argv[i] = NULL;1222 }1223 1192 return true; 1224 1225 } 1226 1193 } 1194 -
trunk/src/VBox/Additions/common/VBoxService/testcase/tstUserInfo.cpp
r32652 r38636 41 41 * Init globals and such. 42 42 */ 43 RTR3Init ();43 RTR3InitExeNoArguments(0); 44 44 45 45 int rc = VbglR3Init(); -
trunk/src/VBox/Additions/common/crOpenGL/load.c
r38315 r38636 103 103 devMode.dmSize = sizeof(DEVMODE); 104 104 EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &devMode); 105 105 106 106 if (devMode.dmPelsWidth!=window->dmPelsWidth || devMode.dmPelsHeight!=window->dmPelsHeight) 107 107 { … … 327 327 ASMAtomicWriteBool(&stub.bShutdownSyncThread, true); 328 328 #endif 329 329 330 330 //delete all created contexts 331 331 stubMakeCurrent( NULL, NULL); … … 409 409 /*Same issue as on linux, RTThreadWait exits before system thread is terminated, which leads 410 410 * to issues as our dll goes to be unloaded. 411 *@todo 411 *@todo 412 412 *We usually call this function from DllMain which seems to be holding some lock and thus we have to 413 413 * kill thread via TerminateThread. … … 653 653 line[crStrlen(line) - 1] = 0; /* remove trailing newline */ 654 654 if (crStrncmp(line, procName, procNameLen) == 0 && 655 (line[procNameLen] == ' ' || line[procNameLen] == '\t')) 655 (line[procNameLen] == ' ' || line[procNameLen] == '\t')) 656 656 { 657 657 crWarning("Using Chromium configuration for %s from %s", … … 888 888 if (pWindow->hVisibleRegion!=INVALID_HANDLE_VALUE) 889 889 { 890 CombineRgn(hNewRgn, pWindow->hVisibleRegion, hNewRgn, 890 CombineRgn(hNewRgn, pWindow->hVisibleRegion, hNewRgn, 891 891 pRegions->pRegions->fFlags.bAddHiddenRects ? RGN_DIFF:RGN_OR); 892 892 … … 1105 1105 { 1106 1106 /* Here is where we contact the mothership to find out what we're supposed 1107 * to be doing. Networking code in a DLL initializer. I sure hope this 1108 * works :) 1109 * 1107 * to be doing. Networking code in a DLL initializer. I sure hope this 1108 * works :) 1109 * 1110 1110 * HOW can I pass the mothership address to this if I already know it? 1111 1111 */ 1112 1112 1113 1113 CRConnection *conn = NULL; 1114 1114 char response[1024]; … … 1200 1200 crSPUInitDispatchTable( &glim ); 1201 1201 1202 /* This is unlikely to change -- We still want to initialize our dispatch 1202 /* This is unlikely to change -- We still want to initialize our dispatch 1203 1203 * table with the functions of the first SPU in the chain. */ 1204 1204 stubInitSPUDispatch( stub.spu ); … … 1225 1225 int rc; 1226 1226 1227 RTR3Init ();1227 RTR3InitDll(0); 1228 1228 1229 1229 if (!disable_sync) … … 1258 1258 } 1259 1259 1260 /* Sigh -- we can't do initialization at load time, since Windows forbids 1260 /* Sigh -- we can't do initialization at load time, since Windows forbids 1261 1261 * the loading of other libraries from DLLMain. */ 1262 1262 1263 1263 #ifdef LINUX 1264 /* GCC crap 1264 /* GCC crap 1265 1265 *void (*stub_init_ptr)(void) __attribute__((section(".ctors"))) = __stubInit; */ 1266 1266 #endif … … 1275 1275 (void) lpvReserved; 1276 1276 1277 switch (fdwReason) 1277 switch (fdwReason) 1278 1278 { 1279 1279 case DLL_PROCESS_ATTACH: -
trunk/src/VBox/Additions/common/pam/pam_vbox.cpp
r38548 r38636 227 227 RTAssertSetMayPanic(false); 228 228 229 int rc = RTR3Init ();229 int rc = RTR3InitDll(0); 230 230 if (RT_FAILURE(rc)) 231 231 { -
trunk/src/VBox/Additions/common/testcase/tstPageFusion.cpp
r37955 r38636 23 23 #include <iprt/asm.h> 24 24 #include <iprt/mem.h> 25 #include <iprt/messages.h> 25 26 #include <iprt/stream.h> 26 27 #include <iprt/string.h> … … 349 350 int main(int argc, char **argv) 350 351 { 351 int rc = VINF_SUCCESS;352 352 /* 353 353 * Init globals and such. 354 354 */ 355 RTR3Init(); 355 int rc = RTR3InitExe(argc, &argv, 0); 356 if (RT_FAILURE(rc)) 357 return RTMsgInitFailure(rc); 356 358 357 359 /* -
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r35617 r38636 30 30 #include <iprt/env.h> 31 31 #include <iprt/initterm.h> 32 #include <iprt/message.h> 32 33 #include <iprt/path.h> 33 34 #include <iprt/param.h> … … 159 160 int main(int argc, char *argv[]) 160 161 { 161 int rcClipboard, rc; 162 /* Initialise our runtime before all else. */ 163 int rc = RTR3InitExe(argc, &argv, 0); 164 if (RT_FAILURE(rc)) 165 return RTMsgInitFailure(rc); 166 167 int rcClipboard; 162 168 const char *pszFileName = RTPathFilename(argv[0]); 163 169 bool fDaemonise = true; … … 170 176 pszFileName = "VBoxClient"; 171 177 172 /* Initialise our runtime before all else. */173 rc = RTR3Init();174 if (RT_FAILURE(rc))175 {176 /* Of course, this should never happen. */177 RTPrintf("%s: Failed to initialise the run-time library, rc=%Rrc\n", pszFileName, rc);178 exit(1);179 }180 181 178 /* Initialise our global clean-up critical section */ 182 179 rc = RTCritSectInit(&g_critSect); … … 185 182 /* Of course, this should never happen. */ 186 183 RTPrintf("%s: Failed to initialise the global critical section, rc=%Rrc\n", pszFileName, rc); 187 exit(1);184 return 1; 188 185 } 189 186 … … 225 222 { 226 223 vboxClientUsage(pszFileName); 227 exit(0);224 return 0; 228 225 } 229 226 else … … 231 228 RTPrintf("%s: unrecognized option `%s'\n", pszFileName, argv[i]); 232 229 RTPrintf("Try `%s --help' for more information\n", pszFileName); 233 exit(1);230 return 1; 234 231 } 235 232 } … … 237 234 { 238 235 vboxClientUsage(pszFileName); 239 exit(1);236 return 1; 240 237 } 241 238 /* Get the path for the pidfiles */ -
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11-auto.cpp
r37173 r38636 685 685 int main( int argc, char **argv) 686 686 { 687 RTR3Init ();687 RTR3InitExe(argc, &argv, 0); 688 688 unsigned cErrs = 0; 689 689 g_pszTestName = RTPathFilename(argv[0]); -
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11.cpp
r36808 r38636 107 107 char ach[2]; 108 108 109 RTR3Init ();109 RTR3InitExe(argc, &argv, 0); 110 110 RTPrintf("VirtualBox guest additions X11 seamless mode testcase\n"); 111 111 if (0 == XInitThreads())
Note:
See TracChangeset
for help on using the changeset viewer.