]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix handling of empty files in Hexedit
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 Nov 2011 15:37:04 +0000 (15:37 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 Nov 2011 15:37:04 +0000 (15:37 +0000)
commit2e5c97edcd06f12034af3bf6684c63a2d8275315
tree83f302881b7365d52da99f6d0926a0a03f6cbb12
parentf7fe94abe8087647a824653395645eddc6035d61
ShellPkg: Fix handling of empty files in Hexedit

Currently hexedit thinks all files that are non-existent (i.e. new) or empty must be a memory error since the pointer is checked, but the file size is not referenced.

Signed-off-by: jcarsey
Reviewed-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12797 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c