diff --git a/MdeModulePkg/Universal/PCD/Pei/Service.c b/MdeModulePkg/Universal/PCD/Pei/Service.c index ec91699182..ab3059c735 100644 --- a/MdeModulePkg/Universal/PCD/Pei/Service.c +++ b/MdeModulePkg/Universal/PCD/Pei/Service.c @@ -305,7 +305,7 @@ InvokeCallbackOnSet ( for (Idx = 0; Idx < PcdGet32 (PcdMaxPeiPcdCallBackNumberPerPcdEntry); Idx++) { if (CallbackTable[Idx] != NULL) { CallbackTable[Idx] (Guid, - (Guid == NULL)? TokenNumber: ExTokenNumber, + (Guid == NULL) ? (TokenNumber + 1) : ExTokenNumber, Data, Size );