From 00e96a6cb1c0bef6af50d6c3cc41c88b0038d850 Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Fri, 16 Sep 2005 04:53:07 +0000 Subject: [PATCH] last time. fix a typo. im so sorry! svn path=/trunk/; revision=17874 --- reactos/subsys/system/cmd/start.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/subsys/system/cmd/start.c b/reactos/subsys/system/cmd/start.c index d7ce1dfd4fd..4922d4232ed 100644 --- a/reactos/subsys/system/cmd/start.c +++ b/reactos/subsys/system/cmd/start.c @@ -78,7 +78,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) rest = malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR)); if (rest == NULL) { - if(compsec != NULL) + if(comspec != NULL) free(comspec); error_out_of_memory(); return 1; @@ -87,7 +87,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) param =malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR)); if (rest == NULL) { - if(compsec != NULL) + if(comspec != NULL) free(comspec); free(rest); error_out_of_memory(); @@ -164,7 +164,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) if (param != NULL) free(param); - if (compsec != NULL) + if (comspec != NULL) free(comspec); return 0; } @@ -182,7 +182,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) if (param != NULL) free(param); - if (compsec != NULL) + if (comspec != NULL) free(comspec); return 1; } @@ -197,7 +197,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) _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[1], &szFullCmdLine[0], _tcslen(szFullCmdLine) * sizeof(TCHAR)); szFullCmdLine[0] = _T('\"'); @@ -273,7 +273,7 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) if (param != NULL) free(param); - if (compsec != NULL) + if (comspec != NULL) free(comspec); return 0; }