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:
Star Zeng 2015-06-11 01:23:15 +00:00 committed by lzeng14
parent ff6096f5e4
commit a856128a15
1 changed files with 1 additions and 1 deletions

View File

@ -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 {