Fix gcc build break. The PCD TokenNumber is incremented, not the address of the PCD...
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 30 May 2006 16:33:09 +0000 (16:33 +0000)
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 30 May 2006 16:33:09 +0000 (16:33 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@325 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Universal/PCD/Dxe/Pcd.c

index 1bde2d8..64191a7 100644 (file)
@@ -511,7 +511,7 @@ DxePcdGetNextToken (
   // Scan the local token space\r
   //\r
   if (Guid == NULL) {\r
-    *TokenNumber++;\r
+    (*TokenNumber)++;\r
     if (*TokenNumber == PCD_INVALID_TOKEN_NUMBER) {\r
       return EFI_SUCCESS;\r
     } else {\r