summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcarsey <jcarsey>2014-10-07 19:57:23 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-10-07 19:57:23 +0000
commit88963516461abf48243acee848703981187ed97c (patch)
tree66dae664acb6d603f22828c9501b5427532bac09
parent75e34de46c170ae32ec7537eb2de11f81cfa305b (diff)
downloadedk2-88963516461abf48243acee848703981187ed97c.zip
edk2-88963516461abf48243acee848703981187ed97c.tar.gz
edk2-88963516461abf48243acee848703981187ed97c.tar.bz2
Dmpstore command does not return lasterror equal to 0 when ā€˜-sā€™ flag used to dump variables in file
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah <tapandshah@hp.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16196 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
index e8c2904..f90e119 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
@@ -335,7 +335,7 @@ AppendSingleVariableToFile (
FreePool (Buffer);
if (!EFI_ERROR (Status) &&
- (BufferSize != sizeof (NameSize) + sizeof (DataSize) + sizeof (*Guid) + sizeof (Attributes) + NameSize + DataSize)
+ (BufferSize != sizeof (NameSize) + sizeof (DataSize) + sizeof (*Guid) + sizeof (Attributes) + NameSize + DataSize + sizeof (UINT32))
) {
Status = EFI_DEVICE_ERROR;
}