Fixed compiler warning

svn path=/trunk/; revision=1397
This commit is contained in:
Eric Kohl 2000-10-09 00:12:01 +00:00
parent d996724891
commit e224120546

View file

@ -1,4 +1,4 @@
/* $Id: conio.c,v 1.11 2000/08/05 18:01:58 dwelch Exp $ /* $Id: conio.c,v 1.12 2000/10/09 00:12:01 ekohl Exp $
* *
* reactos/subsys/csrss/api/conio.c * reactos/subsys/csrss/api/conio.c
* *
@ -204,16 +204,21 @@ NTSTATUS CsrpWriteConsole( PCSRSS_CONSOLE Console, CHAR *Buffer, DWORD Length, B
{ {
/* slide viewable screen up */ /* slide viewable screen up */
if( Console->ShowY == Console->CurrentY ) if( Console->ShowY == Console->CurrentY )
if( Console->ShowY == 0 ) {
Console->ShowY = Console->MaxY; if( Console->ShowY == 0 )
else Console->ShowY--; Console->ShowY = Console->MaxY;
else
Console->ShowY--;
}
/* slide virtual position up */ /* slide virtual position up */
Console->CurrentX = Console->MaxX; Console->CurrentX = Console->MaxX;
if( Console->CurrentY == 0 ) if( Console->CurrentY == 0 )
Console->CurrentY = Console->MaxY; Console->CurrentY = Console->MaxY;
else Console->CurrentY--; else
Console->CurrentY--;
} }
else Console->CurrentX--; else
Console->CurrentX--;
Console->Buffer[ 2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX) ] = ' '; Console->Buffer[ 2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX) ] = ' ';
Console->Buffer[ (2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX)) + 1 ] = Console->DefaultAttrib; Console->Buffer[ (2 * ((Console->CurrentY * Console->MaxX) + Console->CurrentX)) + 1 ] = Console->DefaultAttrib;
break; break;
@ -414,7 +419,7 @@ VOID CsrDrawConsole( PCSRSS_CONSOLE Console )
} }
} }
VOID CsrDeleteConsole( PCSRSS_PROCESS_DATA ProcessData, PCSRSS_CONSOLE Console ) VOID CsrDeleteConsole( PCSRSS_PROCESS_DATA ProcessData, PCSRSS_CONSOLE Console )
{ {
ConsoleInput *Event; ConsoleInput *Event;