last time. fix a typo. im so sorry!
Modified: trunk/reactos/subsys/system/cmd/start.c
_____
Modified: trunk/reactos/subsys/system/cmd/start.c
--- trunk/reactos/subsys/system/cmd/start.c 2005-09-16 04:46:06 UTC
(rev 17873)
+++ trunk/reactos/subsys/system/cmd/start.c 2005-09-16 04:53:07 UTC
(rev 17874)
@@ -78,7 +78,7 @@
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 @@
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 @@
if (param != NULL)
free(param);
- if (compsec != NULL)
+ if (comspec != NULL)
free(comspec);
return 0;
}
@@ -182,7 +182,7 @@
if (param != NULL)
free(param);
- if (compsec != NULL)
+ if (comspec != NULL)
free(comspec);
return 1;
}
@@ -197,7 +197,7 @@
_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 @@
if (param != NULL)
free(param);
- if (compsec != NULL)
+ if (comspec != NULL)
free(comspec);
return 0;
}