fixing a bug in searching for cmd for bat/cmd files, thx ravelo to found
this stupied bug
Modified: trunk/reactos/subsys/system/cmd/start.c
_____
Modified: trunk/reactos/subsys/system/cmd/start.c
--- trunk/reactos/subsys/system/cmd/start.c 2005-08-24 23:29:51 UTC
(rev 17527)
+++ trunk/reactos/subsys/system/cmd/start.c 2005-08-24 23:33:34 UTC
(rev 17528)
@@ -130,11 +130,12 @@
error_bad_command ();
return 1;
}
-
- memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K
"), 5 * sizeof(TCHAR));
- memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],
szFullName, _tcslen(szFullName) * sizeof(TCHAR));
- memcpy(&szFullCmdLine[1], &szFullCmdLine[2],
_tcslen(szFullCmdLine) * sizeof(TCHAR));
- szFullCmdLine[0] = _T('\"');
+
+ memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],_T("\" /K
"), 5 * sizeof(TCHAR));
+ memcpy(&szFullCmdLine[_tcslen(szFullCmdLine)],
szFullName, _tcslen(szFullName) * sizeof(TCHAR));
+ memcpy(&szFullCmdLine[1], &szFullCmdLine[0],
_tcslen(szFullCmdLine) * sizeof(TCHAR));
+ szFullCmdLine[0] = _T('\"');
+
}
#ifdef _DEBUG
Show replies by date