ShellPkg: fix DmpStore for deleting
authorJaben Carsey <jaben.carsey@intel.com>
Fri, 20 Dec 2013 22:33:01 +0000 (22:33 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 20 Dec 2013 22:33:01 +0000 (22:33 +0000)
commit5bd12b0555989b714d47abe628d846861d350efe
tree9f9bfb4f5caef0e4c468ab500a0c4996f957b3ed
parent4692bc0b81d822e467435c7a7b9e6470dff1b8d2
ShellPkg: fix DmpStore for deleting

This change allows DmpStore command to delete all variables whereas before it would stop after a single deletion due to looping errors.  It uses a recursive function and deletes the last item returned from GetNextVariableName() first and then goes "backwards" to the first items.

This can't delete authenticated variables.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15014 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c