]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Dmpstore command does not return lasterror equal to 0 when ā€˜-sā€™ flag used to dump...
authorjcarsey <jcarsey>
Tue, 7 Oct 2014 19:57:23 +0000 (19:57 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Oct 2014 19:57:23 +0000 (19:57 +0000)
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

ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c

index e8c2904823bd06c41424e3c0e98bb250c7322a8a..f90e11936e97513973724982c5430d04bf7c5a30 100644 (file)
@@ -335,7 +335,7 @@ AppendSingleVariableToFile (
   FreePool (Buffer);\r
 \r
   if (!EFI_ERROR (Status) && \r
-      (BufferSize != sizeof (NameSize) + sizeof (DataSize) + sizeof (*Guid) + sizeof (Attributes) + NameSize + DataSize)\r
+      (BufferSize != sizeof (NameSize) + sizeof (DataSize) + sizeof (*Guid) + sizeof (Attributes) + NameSize + DataSize + sizeof (UINT32))\r
     ) {\r
     Status = EFI_DEVICE_ERROR;\r
   }\r