Changeset 33272 in vbox
- Timestamp:
- Oct 20, 2010 5:33:26 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r33247 r33272 527 527 #endif 528 528 529 g_pszProgName = RTPathFilename(argv[0]); 530 529 531 #ifdef VBOXSERVICE_TOOLBOX 530 532 /* … … 540 542 * Do pre-init of services. 541 543 */ 542 g_pszProgName = RTPathFilename(argv[0]);543 544 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) 544 545 { -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r33247 r33272 1073 1073 } 1074 1074 else 1075 #endif /* RT_OS_WINDOWS */ 1076 #ifdef VBOXSERVICE_TOOLBOX 1077 /* 1078 * Use the built-in toolbox of VBoxService? 1079 */ 1080 if ( (g_pszProgName && stricmp(pszExec, g_pszProgName) == 0) 1081 || stricmp(pszExec, "VBoxService")) 1082 { 1083 /* Search the path of our executable. */ 1084 char szVBoxService[RTPATH_MAX]; 1085 if (RTProcGetExecutableName(szVBoxService, sizeof(szVBoxService))) 1086 { 1087 rc = RTProcCreateEx(szVBoxService, papszArgs, hEnv, fFlags, 1088 phStdIn, phStdOut, phStdErr, pszAsUser, 1089 pszPassword, phProcess); 1090 } 1091 else 1092 rc = VERR_NOT_FOUND; 1093 } 1094 else 1075 1095 { 1076 1096 #endif … … 1079 1099 phStdIn, phStdOut, phStdErr, pszAsUser, 1080 1100 pszPassword, phProcess); 1081 #ifdef RT_OS_WINDOWS1082 } 1083 #endif 1101 #ifdef VBOXSERVICE_TOOLBOX 1102 } 1103 #endif /* VBOXSERVICE_TOOLBOX */ 1084 1104 return rc; 1085 1105 }
Note:
See TracChangeset
for help on using the changeset viewer.