Changeset 9517 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Dec 17, 2002, 2:48:24 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r9497 r9517 1 /* $Id: wprocess.cpp,v 1.16 5 2002-12-13 16:54:17sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.166 2002-12-17 13:48:24 sandervl Exp $ */ 2 2 3 3 /* … … 2008 2008 char *newcmdline; 2009 2009 2010 newcmdline = (char *)malloc(strlen(lpCurrentDirectory) + iNewCommandLineLength + 32);2010 newcmdline = (char *)malloc(strlen(lpCurrentDirectory) + iNewCommandLineLength + strlen(lpszPE) + 16); 2011 2011 sprintf(newcmdline, "%s /OPT:[CURDIR=%s] %s %s", lpszPE, lpCurrentDirectory, szAppName, lpCommandLine); 2012 2012 free(cmdline); … … 2016 2016 char *newcmdline; 2017 2017 2018 newcmdline = (char *)malloc(iNewCommandLineLength + 16);2018 newcmdline = (char *)malloc(iNewCommandLineLength + strlen(lpszPE) + 16); 2019 2019 sprintf(newcmdline, "%s %s %s", lpszPE, szAppName, lpCommandLine); 2020 2020 free(cmdline); … … 2035 2035 char *newcmdline; 2036 2036 2037 newcmdline = (char *)malloc(strlen(szAppName) + strlen(cmdline) + 512);2037 newcmdline = (char *)malloc(strlen(szAppName) + strlen(cmdline) + strlen(szNELoader) + strlen(szPEGUILoader) + strlen(lpCommandLine) + 32); 2038 2038 2039 2039 sprintf(newcmdline, "%s /PELDR=[%s] %s", szNELoader, szPEGUILoader, szAppName, lpCommandLine);
Note:
See TracChangeset
for help on using the changeset viewer.