summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c b/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c
index 4b2ffb9d95..8c4cc03fc1 100644
--- a/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c
+++ b/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c
@@ -1073,7 +1073,11 @@ FileHandleEof(
return (FALSE);
}
- RetVal = (Pos == Info->FileSize)?TRUE:FALSE;
+ if (Pos == Info->FileSize) {
+ RetVal = TRUE;
+ } else {
+ RetVal = FALSE;
+ }
FreePool (Info);