EFI_EVENT TimerEvent;\r
EFI_EVENT WaitList[2];\r
\r
- if (Timeout) {\r
+ if (Timeout != 0) {\r
//\r
// Create a timer event\r
//\r
ASSERT (ConIn != NULL);\r
ASSERT (InStr != NULL);\r
\r
- if (Prompt) {\r
+ if (Prompt != NULL) {\r
ConOut->OutputString (ConOut, Prompt);\r
}\r
//\r
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
//\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
//\r
// Adjust current cursor position\r
//\r
- if (StrPos) {\r
+ if (StrPos != 0) {\r
StrPos -= 1;\r
ConMoveCursorBackward (LineLength, &Column, &Row);\r
}\r
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