]> git.proxmox.com Git - mirror_edk2.git/commit
DuetPkg FsVariable: Update GetNextVariableName to follow UEFI 2.7
authorStar Zeng <star.zeng@intel.com>
Fri, 23 Jun 2017 07:42:07 +0000 (15:42 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 27 Jun 2017 05:58:01 +0000 (13:58 +0800)
commitddc97cf4a3e1e83f12b70dcdd0801cf8dfd2198b
tree51038eff30ca34069bbf20420978e4b2acbfe69f
parent6f817f9b8b07d195c63247b3cf4c1d646f1e8b0e
DuetPkg FsVariable: Update GetNextVariableName to follow UEFI 2.7

"The size must be large enough to fit input string supplied in
VariableName buffer" is added in the description for VariableNameSize.
And two cases of EFI_INVALID_PARAMETER are added.
1. The input values of VariableName and VendorGuid are not a name and
   GUID of an existing variable.
2. Null-terminator is not found in the first VariableNameSize bytes of
   the input VariableName buffer.

This patch is to update code to follow them.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
DuetPkg/FSVariable/FSVariable.c