Changeset 43049 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Aug 28, 2012 3:05:14 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80383
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlThread.cpp
r43000 r43049 1190 1190 AssertPtrReturn(ppapszArgv, VERR_INVALID_POINTER); 1191 1191 1192 VBoxServiceVerbose(3, "VBoxServiceControlThreadPrepareArgv: pszArgv0=%p, papszArgs=%p, fExpandArgs=%RTbool, ppapszArgv=%p\n", 1193 pszArgv0, papszArgs, fExpandArgs, ppapszArgv); 1194 1192 1195 int rc = VINF_SUCCESS; 1193 1196 uint32_t cArgs; … … 1198 1201 } 1199 1202 1200 /* Allocate new argv vector (adding + 1 for argv0). */1201 size_t cbSize = (cArgs + 1) * sizeof(char*);1203 /* Allocate new argv vector (adding + 2 for argv0 + termination). */ 1204 size_t cbSize = (cArgs + 2) * sizeof(char*); 1202 1205 char **papszNewArgv = (char**)RTMemAlloc(cbSize); 1203 1206 if (!papszNewArgv)
Note:
See TracChangeset
for help on using the changeset viewer.