summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellDebug1CommandsLib
diff options
context:
space:
mode:
Diffstat (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib')
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
index edd2f67650..68074d4244 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
@@ -189,7 +189,7 @@ ShellCommandRunHexEdit (
switch (WhatToDo) {
case FileTypeFileBuffer:
Status = HBufferImageRead (
- Name,
+ Name==NULL?L"":Name,
NULL,
0,
0,
@@ -203,7 +203,7 @@ ShellCommandRunHexEdit (
case FileTypeDiskBuffer:
Status = HBufferImageRead (
NULL,
- Name,
+ Name==NULL?L"":Name,
Offset,
Size,
0,