last time. fix a typo. im so sorry!

svn path=/trunk/; revision=17874
This commit is contained in:
Brandon Turner 2005-09-16 04:53:07 +00:00
parent 691589bdf4
commit 00e96a6cb1

View file

@ -78,7 +78,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
rest = malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR)); rest = malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR));
if (rest == NULL) if (rest == NULL)
{ {
if(compsec != NULL) if(comspec != NULL)
free(comspec); free(comspec);
error_out_of_memory(); error_out_of_memory();
return 1; return 1;
@ -87,7 +87,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
param =malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR)); param =malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR));
if (rest == NULL) if (rest == NULL)
{ {
if(compsec != NULL) if(comspec != NULL)
free(comspec); free(comspec);
free(rest); free(rest);
error_out_of_memory(); error_out_of_memory();
@ -164,7 +164,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
if (param != NULL) if (param != NULL)
free(param); free(param);
if (compsec != NULL) if (comspec != NULL)
free(comspec); free(comspec);
return 0; return 0;
} }
@ -182,7 +182,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
if (param != NULL) if (param != NULL)
free(param); free(param);
if (compsec != NULL) if (comspec != NULL)
free(comspec); free(comspec);
return 1; return 1;
} }
@ -197,7 +197,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
_tcscpy(szFullCmdLine,comspec); _tcscpy(szFullCmdLine,comspec);
memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K \""), 6 * sizeof(TCHAR)); memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T(" \" /K \""), 6 * sizeof(TCHAR));
memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)], szFullName, _tcslen(szFullName) * sizeof(TCHAR)); memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)], szFullName, _tcslen(szFullName) * sizeof(TCHAR));
memcpy(&szFullCmdLine[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR)); memcpy(&szFullCmdLine[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR));
szFullCmdLine[0] = _T('\"'); szFullCmdLine[0] = _T('\"');
@ -273,7 +273,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
if (param != NULL) if (param != NULL)
free(param); free(param);
if (compsec != NULL) if (comspec != NULL)
free(comspec); free(comspec);
return 0; return 0;
} }