diff options
author | Joursoir <chat@joursoir.net> | 2021-12-15 15:13:29 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-12-15 15:13:29 +0300 |
commit | 704f61fcafc0b5b8e8dfff8e56821feb556b40c0 (patch) | |
tree | 9594bc526b1673faf9c0a1b0ba63c103bc92811f /Library/UefiShellUfmCommandLib/widget | |
parent | 8d1a606a1260f32e1e49b3d1d4f35c51b7dc8742 (diff) | |
download | ufm-704f61fcafc0b5b8e8dfff8e56821feb556b40c0.tar.gz ufm-704f61fcafc0b5b8e8dfff8e56821feb556b40c0.tar.bz2 ufm-704f61fcafc0b5b8e8dfff8e56821feb556b40c0.zip |
widget/input: fix the possibility of deletion at the extreme point
Diffstat (limited to 'Library/UefiShellUfmCommandLib/widget')
-rw-r--r-- | Library/UefiShellUfmCommandLib/widget/input.c | 2 |
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++) |