Index: applications/cmdutils/y/y.c =================================================================== --- applications/cmdutils/y/y.c (revision 51040) +++ applications/cmdutils/y/y.c (working copy) @@ -53,7 +53,7 @@ hConsoleIn = GetStdHandle(STD_INPUT_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" "\n" @@ -115,7 +115,7 @@ } while(FindNextFile(hFind,&FindData)); - FindClose(hFile); + FindClose(hFind); } return 0;