diff options
author | Star Zeng <star.zeng@intel.com> | 2015-06-11 01:23:15 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-06-11 01:23:15 +0000 |
commit | a856128a158635f81e2ed8e2763e3a4b347ec62d (patch) | |
tree | be72c22c82d0b9c26db76c131c4da33a6b08951b | |
parent | ff6096f5e49899746ef47eba57e25d9a3bf568f4 (diff) | |
download | edk2-platforms-a856128a158635f81e2ed8e2763e3a4b347ec62d.tar.xz |
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
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index 9b4701bdd7..cf5f2444f6 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -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 {
|