--- mstools/samples/console/conmode.c 2018/08/09 18:20:36 1.1 +++ mstools/samples/console/conmode.c 2018/08/09 18:21:20 1.1.1.2 @@ -3,6 +3,9 @@ #include #include "console.h" +/* Microsoft Developer Support + Copyright (c) 1992 Microsoft Corporation */ + /********************************************************************* * FUNCTION: rawOut(HANDLE hConsole, PCHAR s) * * * @@ -58,7 +61,7 @@ void demoConMode(HANDLE hConOut) setConTitle(__FILE__); hStdIn = GetStdHandle(STD_INPUT_HANDLE); - PERR((int) hStdIn != -1, "GetStdHandle"); + PERR(hStdIn != INVALID_HANDLE_VALUE, "GetStdHandle"); /* get the input mode and save it so that we can restore it later */ bSuccess = GetConsoleMode(hStdIn, &dwInputMode); PERR(bSuccess, "GetconsoleMode");