summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Application/Shell/Shell.c2
1 files changed, 1 insertions, 1 deletions
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:
//