From dcec76514f12c39d6d8725dc1080be0728ad8eab Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Tue, 30 May 2006 16:33:09 +0000 Subject: [PATCH] Fix gcc build break. The PCD TokenNumber is incremented, not the address of the PCD TokenNumber. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@325 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/Universal/PCD/Dxe/Pcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EdkModulePkg/Universal/PCD/Dxe/Pcd.c b/EdkModulePkg/Universal/PCD/Dxe/Pcd.c index 1bde2d8bd4..64191a7161 100644 --- a/EdkModulePkg/Universal/PCD/Dxe/Pcd.c +++ b/EdkModulePkg/Universal/PCD/Dxe/Pcd.c @@ -511,7 +511,7 @@ DxePcdGetNextToken ( // Scan the local token space // if (Guid == NULL) { - *TokenNumber++; + (*TokenNumber)++; if (*TokenNumber == PCD_INVALID_TOKEN_NUMBER) { return EFI_SUCCESS; } else {