aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/widget
diff options
context:
space:
mode:
Diffstat (limited to 'Library/UefiShellUfmCommandLib/widget')
-rw-r--r--Library/UefiShellUfmCommandLib/widget/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/UefiShellUfmCommandLib/widget/input.c b/Library/UefiShellUfmCommandLib/widget/input.c
index 3fbb1b2..ed6738b 100644
--- a/Library/UefiShellUfmCommandLib/widget/input.c
+++ b/Library/UefiShellUfmCommandLib/widget/input.c
@@ -76,7 +76,7 @@ VOID input_handle_char(struct widget_input *in, EFI_INPUT_KEY key)
case 0x0:
break;
case CHAR_BACKSPACE: {
- if(in->buf_len == 0)
+ if(in->buf_len == 0 || in->point == 0)
break;
for(i = in->point; i < in->buf_len; i++)