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);