--- mstools/samples/console/flush.c 2018/08/09 18:20:36 1.1.1.1 +++ mstools/samples/console/flush.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: demoFlush(HANDLE hConOut) * * * @@ -23,7 +26,7 @@ void demoFlush(HANDLE hConOut) setConTitle(__FILE__); hStdIn = GetStdHandle(STD_INPUT_HANDLE); - PERR((int) hStdIn != -1, "GetStdHandle"); + PERR(hStdIn != INVALID_HANDLE_VALUE, "GetStdHandle"); myPuts(hConOut, "Type a number of characters quickly. I will read 5\n" "characters from the input buffer with a Sleep() delay\n" "which will allow it to fill with characters. After 5\n"