diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 0f5e069180..ea142023d2 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -2067,7 +2067,7 @@ RunCommandOrFile( // // Update last error status. // - SetLastError(StatusCode); + SetLastError((SHELL_STATUS) StatusCode); break; default: //