--- mstools/samples/console/writein.c 2018/08/09 18:21:17 1.1.1.2 +++ mstools/samples/console/writein.c 2018/08/09 18:23:13 1.1.1.3 @@ -1,12 +1,20 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + #include #include #include #include #include "console.h" -/* Microsoft Developer Support - Copyright (c) 1992 Microsoft Corporation */ - #define MAX_MACRO_EVENTS 256 #define ALT_PRESSED (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED) #define CONTROL_KEY (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED | \ @@ -35,7 +43,7 @@ void demoWriteIn(HANDLE hConOut) DWORD dwBytesWritten, dwRecordsWritten; CHAR bOutBuf[256]; /* buffer to format event information into */ BOOL bRecording = FALSE; /* TRUE if recording a macro */ - int iir; /* index into macro input buffer */ + int iir = 0; /* index into macro input buffer */ CHAR c; setConTitle(__FILE__);