mirror of https://github.com/acidanthera/audk.git
MdeModulePkg PcdDxe: TokenNumber should start from 1.
Because 0 is reserved as invalid token number. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17613 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ff6096f5e4
commit
a856128a15
|
@ -1864,7 +1864,7 @@ VariableLockDynamicHiiPcd (
|
|||
//
|
||||
// Go through PCD database to find out DynamicHii PCDs.
|
||||
//
|
||||
for (TokenNumber = 0; TokenNumber < LocalTokenCount; TokenNumber++) {
|
||||
for (TokenNumber = 1; TokenNumber <= LocalTokenCount; TokenNumber++) {
|
||||
if (IsPeiDb) {
|
||||
LocalTokenNumber = GetLocalTokenNumber (TRUE, TokenNumber);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue