mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[Y]
- Fix argument checking - Close correct handle - Patch by Kuts Alexey - bug 6004 svn path=/trunk/; revision=51087
This commit is contained in:
parent
b75783bd61
commit
39b14c177e
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ int main (int argc, char **argv)
|
||||||
hConsoleIn = GetStdHandle(STD_INPUT_HANDLE);
|
hConsoleIn = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
if (_tcsncmp (argv[1], _T("/?"), 2) == 0)
|
if (argc == 2 && _tcsncmp (argv[1], _T("/?"), 2) == 0)
|
||||||
{
|
{
|
||||||
ConOutPuts(_T("copy stdin to stdout and then files to stdout\n"
|
ConOutPuts(_T("copy stdin to stdout and then files to stdout\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
@ -115,7 +115,7 @@ int main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
while(FindNextFile(hFind,&FindData));
|
while(FindNextFile(hFind,&FindData));
|
||||||
|
|
||||||
FindClose(hFile);
|
FindClose(hFind);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue