From 88963516461abf48243acee848703981187ed97c Mon Sep 17 00:00:00 2001 From: jcarsey Date: Tue, 7 Oct 2014 19:57:23 +0000 Subject: =?UTF-8?q?Dmpstore=20command=20does=20not=20return=20lasterror=20?= =?UTF-8?q?equal=20to=200=20when=20=E2=80=98-s=E2=80=99=20flag=20used=20to?= =?UTF-8?q?=20dump=20variables=20in=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by : Tapan Shah Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16196 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c') diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c index e8c2904823..f90e11936e 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; } -- cgit v1.2.3