summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/PCD
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 03:47:40 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 03:47:40 +0000
commit736c5dd5804a6d8a043b1c55528d3d89df68db56 (patch)
tree36a56973f1f2120a5fbe71b7687e63b1d179677f /MdeModulePkg/Universal/PCD
parent127fd07c83470636318bc4d5fa7cc6188abfd39b (diff)
downloadedk2-736c5dd5804a6d8a043b1c55528d3d89df68db56.tar.gz
edk2-736c5dd5804a6d8a043b1c55528d3d89df68db56.tar.bz2
edk2-736c5dd5804a6d8a043b1c55528d3d89df68db56.zip
Pass the correct TokenNumber into a CallbackOnSet notification function. The value being passed in was off by 1.
This would not normally cause an issue because the correct notification function was being called. There is only an issue if the same notification function is being used for multiple tokens, and the notification function needs to use the TokenNumber parameter to determine which token setting caused the callback function to be called. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9980 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/PCD')
-rw-r--r--MdeModulePkg/Universal/PCD/Pei/Service.c2
1 files changed, 1 insertions, 1 deletions
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
);