]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg: Fix the incorrect behavior when pressing 'shift' key.
[mirror_edk2.git] / ShellPkg / Application / Shell / FileHandleWrappers.c
index 0e5efe30255631f36b972715c49a464970f88677..f64915d9ed33f2501cd75ee268c166dbb8779872 100644 (file)
@@ -422,6 +422,12 @@ FileInterfaceStdInRead(
     gBS->WaitForEvent (1, &gST->ConIn->WaitForKey, &EventIndex);\r
     Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
     if (EFI_ERROR (Status)) {\r
+\r
+      if (Status == EFI_NOT_READY)\r
+        continue;\r
+\r
+      ZeroMem (CurrentString, MaxStr * sizeof(CHAR16));\r
+      StringLen = 0;\r
       break;\r
     }\r
 \r