quick dirty hack getting our copy working with 1>null by me

so we can create reactos iso on ros. bug reported by harteex and Brandon Turner, thanks to Brandon to hunt down where the bug was. 

svn path=/trunk/; revision=16526
This commit is contained in:
Magnus Olsen 2005-07-10 21:26:51 +00:00
parent a5b363cd94
commit fe2f78c54c

View file

@ -232,8 +232,23 @@ ParseCommand (LPFILES f, int argc, TCHAR **arg, LPDWORD lpdwFlags)
source = 0;
count = 0;
for (i = 0; i < argc; i++)
ConOutPrintf(_T("here\n"));
/* hack geting pipe 1>null working */
for (i = 0; i < argc; i++)
{
if (arg[i][0] != _T('/'))
count++;
}
if (count==3) argc=2;
/* end hack */
for (i = 0; i < argc; i++)
{
if (arg[i][0] == _T('/'))
{
if (!DoSwitches (arg[i], lpdwFlags))
@ -645,6 +660,7 @@ INT cmd_copy (LPTSTR first, LPTSTR rest)
BOOL bDestFound;
DWORD dwFlags = 0;
ConOutPrintf(_T("string : %s\n"),rest);
if (!_tcsncmp (rest, _T("/?"), 2))
{
ConOutResPaging(TRUE,STRING_COPY_HELP2);