diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-03 15:40:49 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-03 15:40:49 +0000 |
commit | bb5545b663e1d8ac4fd37003d5ba26fafdad5831 (patch) | |
tree | cfc7c990d6c40fa4be7996e1609af57f05edb7b8 /MdePkg/Library/PeiPcdLib | |
parent | a15bb0d31f5345dd81dde0e978a3cbdc54fa27e7 (diff) | |
download | edk2-platforms-bb5545b663e1d8ac4fd37003d5ba26fafdad5831.tar.xz |
Add PcdDxe and PcdPEIM to all-arch for EdkModulePkg-All-Archs.fpd
Fix a few bugs in PcdDxe and PcdPEIM
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@722 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/PeiPcdLib')
-rw-r--r-- | MdePkg/Library/PeiPcdLib/PeiPcdLib.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c index 4018e44f70..57fa821156 100644 --- a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c +++ b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c @@ -68,6 +68,8 @@ LibPcdSetSku ( )
{
+ ASSERT (SkuId < 0x100);
+
GetPcdPpiPtr()->SetSku (SkuId);;
return SkuId;
@@ -586,6 +588,8 @@ LibPcdSetPtr ( PCD_PPI *PcdPpi;
UINTN Size;
+ ASSERT (SizeOfBuffer != NULL);
+
if (*SizeOfBuffer > 0) {
ASSERT (Buffer != NULL);
}
@@ -999,7 +1003,7 @@ LibPcdGetNextToken ( @retval CONST GUID * The next valid token namespace.
**/
-CONST GUID*
+GUID *
EFIAPI
LibPcdGetNextTokenSpace (
IN CONST GUID *Guid
@@ -1015,6 +1019,6 @@ LibPcdGetNextTokenSpace ( ASSERT_EFI_ERROR (Status);
- return Guid;
+ return (GUID *)Guid;
}
|