mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
ShellPkg:Fix bug in FileBuffer.c
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2998 In the function FileBufferCutLine(),set the CutLine pointer to NULL, The function header specifies that the pointer is valid on a successful or failed return code. Signed-off-by: Enze Zhu <zhuenze@byosoft.com.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
parent
09af9bd9be
commit
d00719485f
1 changed files with 2 additions and 0 deletions
|
|
@ -2767,6 +2767,8 @@ FileBufferCutLine (
|
|||
UINTN Row;
|
||||
UINTN Col;
|
||||
|
||||
*CutLine = NULL;
|
||||
|
||||
if (FileBuffer.ReadOnly) {
|
||||
StatusBarSetStatusString (L"Read Only File Can Not Be Modified");
|
||||
return EFI_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue