Author: hbelusca Date: Fri May 2 15:09:26 2014 New Revision: 63108
URL: http://svn.reactos.org/svn/reactos?rev=63108&view=rev Log: [CONDRV]: Remove compilation warnings.
Modified: branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/coninput.c branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/text.c
Modified: branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/coninput.c URL: http://svn.reactos.org/svn/reactos/branches/condrv_restructure/win32ss/user/... ============================================================================== --- branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/coninput.c [iso-8859-1] (original) +++ branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/coninput.c [iso-8859-1] Fri May 2 15:09:26 2014 @@ -256,7 +256,7 @@
/* Validity checks */ ASSERT(Console == InputBuffer->Header.Console); - ASSERT( (Buffer != NULL && NumCharsToRead >= 0) || + ASSERT( (Buffer != NULL && NumCharsToRead > 0) || (Buffer == NULL && NumCharsToRead == 0) );
/* We haven't read anything (yet) */ @@ -402,7 +402,7 @@
/* Validity checks */ ASSERT(Console == InputBuffer->Header.Console); - ASSERT( (InputRecord != NULL && NumEventsToRead >= 0) || + ASSERT( (InputRecord != NULL && NumEventsToRead > 0) || (InputRecord == NULL && NumEventsToRead == 0) );
// Do NOT do that !! Use the existing number of events already read, if any... @@ -472,7 +472,7 @@
/* Validity checks */ ASSERT(Console == InputBuffer->Header.Console); - ASSERT( (InputRecord != NULL && NumEventsToWrite >= 0) || + ASSERT( (InputRecord != NULL && NumEventsToWrite > 0) || (InputRecord == NULL && NumEventsToWrite == 0) );
// Do NOT do that !! Use the existing number of events already written, if any...
Modified: branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/text.c URL: http://svn.reactos.org/svn/reactos/branches/condrv_restructure/win32ss/user/... ============================================================================== --- branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/text.c [iso-8859-1] (original) +++ branches/condrv_restructure/win32ss/user/winsrv/consrv/condrv/text.c [iso-8859-1] Fri May 2 15:09:26 2014 @@ -829,7 +829,7 @@
/* Validity checks */ ASSERT(Console == ScreenBuffer->Header.Console); - ASSERT( (StringBuffer != NULL && NumCharsToWrite >= 0) || + ASSERT( (StringBuffer != NULL && NumCharsToWrite > 0) || (StringBuffer == NULL && NumCharsToWrite == 0) );
// if (Console->PauseFlags & (PAUSED_FROM_KEYBOARD | PAUSED_FROM_SCROLLBAR | PAUSED_FROM_SELECTION)) @@ -909,7 +909,7 @@
/* Validity checks */ ASSERT(Console == Buffer->Header.Console); - ASSERT( (StringBuffer != NULL && NumCodesToRead >= 0) || + ASSERT( (StringBuffer != NULL && NumCodesToRead > 0) || (StringBuffer == NULL && NumCodesToRead == 0) );
switch (CodeType) @@ -1033,7 +1033,7 @@
/* Validity checks */ ASSERT(Console == Buffer->Header.Console); - ASSERT( (StringBuffer != NULL && NumCodesToWrite >= 0) || + ASSERT( (StringBuffer != NULL && NumCodesToWrite > 0) || (StringBuffer == NULL && NumCodesToWrite == 0) );
switch (CodeType)