Changeset 33762 in vbox
- Timestamp:
- Nov 4, 2010 12:48:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r33696 r33762 1096 1096 AssertPtrReturn(ppapszArgv, VERR_INVALID_PARAMETER); 1097 1097 1098 bool fUseToolbox = false; 1099 if (RTStrStr(papszArgs[0], "vbox_") == papszArgs[0]) 1100 fUseToolbox = true; 1101 1102 /* Skip argv[0] (= file name) if we don't run an internal 1103 * VBoxService toolbox command - we already have a resolved one in pszFileName. */ 1098 1104 char *pszArgs; 1099 int rc = RTGetOptArgvToString(&pszArgs, papszArgs, 1105 int rc = RTGetOptArgvToString(&pszArgs, 1106 fUseToolbox ? papszArgs : &papszArgs[1], 1100 1107 RTGETOPTARGV_CNV_QUOTE_MS_CRT); /* RTGETOPTARGV_CNV_QUOTE_BOURNE_SH */ 1101 if (RT_SUCCESS(rc)) 1108 if ( RT_SUCCESS(rc) 1109 && pszArgs) 1102 1110 { 1103 1111 /* … … 1119 1127 } 1120 1128 RTStrFree(pszArgs); 1129 } 1130 else /* No arguments given, just use the resolved file name as argv[0]. */ 1131 { 1132 int iNumArgsIgnored; 1133 rc = RTGetOptArgvFromString(ppapszArgv, &iNumArgsIgnored, 1134 pszFileName, NULL /* Use standard separators. */); 1121 1135 } 1122 1136 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.

