--- mstools/samples/console/fillchar.c 2018/08/09 18:20:36 1.1.1.1 +++ mstools/samples/console/fillchar.c 2018/08/09 18:21:19 1.1.1.2 @@ -1,6 +1,9 @@ #include #include "console.h" +/* Microsoft Developer Support + Copyright (c) 1992 Microsoft Corporation */ + /******************************************************************* * FUNCTION: demoFillChar(HANDLE hConOut) * * * @@ -26,7 +29,7 @@ void demoFillChar(HANDLE hConOut) "using the FillConsoleOutputCharacter API. Hit a key to \n" "fill the buffer with (hit ESC to return):"); hStdIn = GetStdHandle(STD_INPUT_HANDLE); - PERR((int) hStdIn != -1, "GetStdHandle"); + PERR(hStdIn != INVALID_HANDLE_VALUE, "GetStdHandle"); for(;;) { do