ShellPkg/DynamicCommand: Fix bug that cannot start in boot
[mirror_edk2.git] / ShellPkg / DynamicCommand / TftpDynamicCommand / TftpDynamicCommand.c
index 928ef08468e150b56dacca8da4df70657f0b3ced..9e6489dd6fc5abedb6c549b47a666abdddc97274 100644 (file)
@@ -39,6 +39,7 @@ TftpCommandHandler (
   )\r
 {\r
   gEfiShellParametersProtocol = ShellParameters;\r
   )\r
 {\r
   gEfiShellParametersProtocol = ShellParameters;\r
+  gEfiShellProtocol           = Shell;\r
   return RunTftp (gImageHandle, SystemTable);\r
 }\r
 \r
   return RunTftp (gImageHandle, SystemTable);\r
 }\r
 \r