MdeModulePkg/EbcDxe: Avoid Non-Boolean type used as Boolean

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Pete Batard <pete@akeo.ie>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jiewen.yao@intel.com
This commit is contained in:
Dandan Bi
2016-12-01 17:07:09 +08:00
committed by Star Zeng
parent 3e118ea87d
commit 532daaed0d
5 changed files with 97 additions and 97 deletions

View File

@@ -50,7 +50,7 @@ WaitForSingleEvent (
EFI_EVENT TimerEvent;
EFI_EVENT WaitList[2];
if (Timeout) {
if (Timeout != 0) {
//
// Create a timer event
//
@@ -204,7 +204,7 @@ Input (
ASSERT (ConIn != NULL);
ASSERT (InStr != NULL);
if (Prompt) {
if (Prompt != NULL) {
ConOut->OutputString (ConOut, Prompt);
}
//
@@ -255,7 +255,7 @@ Input (
break;
case CHAR_BACKSPACE:
if (StrPos) {
if (StrPos != 0) {
//
// If not move back beyond string beginning, move all characters behind
// the current position one character forward
@@ -307,7 +307,7 @@ Input (
//
// Move characters behind current position one character forward
//
if (Len) {
if (Len != 0) {
Update = StrPos;
Delete = 1;
CopyMem (InStr + StrPos, InStr + StrPos + 1, sizeof (CHAR16) * (Len - StrPos));
@@ -320,7 +320,7 @@ Input (
//
// Adjust current cursor position
//
if (StrPos) {
if (StrPos != 0) {
StrPos -= 1;
ConMoveCursorBackward (LineLength, &Column, &Row);
}
@@ -447,7 +447,7 @@ Input (
EDBPrint (InStr + Update);
Len = StrLen (InStr);
if (Delete) {
if (Delete != 0) {
SetMem (InStr + Len, Delete * sizeof (CHAR16), 0x00);
}