[CONDRV]: Remove compilation warnings.

svn path=/branches/condrv_restructure/; revision=63108
This commit is contained in:
Hermès Bélusca-Maïto 2014-05-02 15:09:26 +00:00
parent b819608ed8
commit 6e2c6eb7de
2 changed files with 6 additions and 6 deletions

View file

@ -256,7 +256,7 @@ ConDrvReadConsole(IN PCONSOLE Console,
/* 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 @@ ConDrvGetConsoleInput(IN PCONSOLE Console,
/* 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 @@ ConDrvWriteConsoleInput(IN PCONSOLE Console,
/* 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...

View file

@ -829,7 +829,7 @@ ConDrvWriteConsole(IN PCONSOLE Console,
/* 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 @@ ConDrvReadConsoleOutputString(IN PCONSOLE Console,
/* 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 @@ ConDrvWriteConsoleOutputString(IN PCONSOLE Console,
/* Validity checks */
ASSERT(Console == Buffer->Header.Console);
ASSERT( (StringBuffer != NULL && NumCodesToWrite >= 0) ||
ASSERT( (StringBuffer != NULL && NumCodesToWrite > 0) ||
(StringBuffer == NULL && NumCodesToWrite == 0) );
switch (CodeType)