]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportUI.c
MdeModulePkg/EbcDxe: Avoid Non-Boolean type used as Boolean
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / EbcDebugger / EdbSupportUI.c
index 42d8086521b953d978bde441cef9dcfcd70b6de9..21d0dc983802487d2794762381309ed60066c47f 100644 (file)
@@ -50,7 +50,7 @@ WaitForSingleEvent (
   EFI_EVENT   TimerEvent;\r
   EFI_EVENT   WaitList[2];\r
 \r
-  if (Timeout) {\r
+  if (Timeout != 0) {\r
     //\r
     // Create a timer event\r
     //\r
@@ -204,7 +204,7 @@ Input (
   ASSERT (ConIn != NULL);\r
   ASSERT (InStr != NULL);\r
 \r
-  if (Prompt) {\r
+  if (Prompt != NULL) {\r
     ConOut->OutputString (ConOut, Prompt);\r
   }\r
   //\r
@@ -255,7 +255,7 @@ Input (
       break;\r
 \r
     case CHAR_BACKSPACE:\r
-      if (StrPos) {\r
+      if (StrPos != 0) {\r
         //\r
         // If not move back beyond string beginning, move all characters behind\r
         // the current position one character forward\r
@@ -307,7 +307,7 @@ Input (
         //\r
         // Move characters behind current position one character forward\r
         //\r
-        if (Len) {\r
+        if (Len != 0) {\r
           Update  = StrPos;\r
           Delete  = 1;\r
           CopyMem (InStr + StrPos, InStr + StrPos + 1, sizeof (CHAR16) * (Len - StrPos));\r
@@ -320,7 +320,7 @@ Input (
         //\r
         // Adjust current cursor position\r
         //\r
-        if (StrPos) {\r
+        if (StrPos != 0) {\r
           StrPos -= 1;\r
           ConMoveCursorBackward (LineLength, &Column, &Row);\r
         }\r
@@ -447,7 +447,7 @@ Input (
       EDBPrint (InStr + Update);\r
       Len = StrLen (InStr);\r
 \r
-      if (Delete) {\r
+      if (Delete != 0) {\r
         SetMem (InStr + Len, Delete * sizeof (CHAR16), 0x00);\r
       }\r
 \r