Changeset 28660 in vbox
- Timestamp:
- Apr 23, 2010 3:35:17 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r28649 r28660 616 616 pData->uNumArgs = 0; /* Initialize in case of RTGetOptArgvFromString() is failing ... */ 617 617 618 /* Prepare argument list. Always add actual command line as first argument (argv[0]). */ 619 char *pszArgsTemp = NULL; 620 int rc = RTStrAPrintf(&pszArgsTemp, "%s %s", pszCmd, (uNumArgs > 0) ? pszArgs : ""); 621 if (RT_SUCCESS(rc) && pszArgsTemp) 622 { 623 rc = RTGetOptArgvFromString(&pData->papszArgs, (int*)&pData->uNumArgs, 624 pszArgsTemp, NULL); 625 RTStrFree(pszArgsTemp); 626 } 627 628 /* Did we get at least as much arguments as told? */ 629 Assert(pData->uNumArgs >= uNumArgs); 618 /* Prepare argument list. */ 619 int rc = RTGetOptArgvFromString(&pData->papszArgs, (int*)&pData->uNumArgs, 620 (uNumArgs > 0) ? pszArgs : "", NULL); 621 /* Did we get the same result? */ 622 Assert(uNumArgs == pData->uNumArgs); 630 623 631 624 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r28634 r28660 93 93 bool verbose = false; 94 94 bool have_timeout = false; 95 96 /* Always use the actual command line as argv[0]. */ 97 args.push_back(Bstr(Utf8Cmd)); 95 98 96 99 /* Iterate through all possible commands (if available). */
Note:
See TracChangeset
for help on using the changeset viewer.