summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxePcdLib/DxePcdLib.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-03 15:40:49 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-03 15:40:49 +0000
commitbb5545b663e1d8ac4fd37003d5ba26fafdad5831 (patch)
treecfc7c990d6c40fa4be7996e1609af57f05edb7b8 /MdePkg/Library/DxePcdLib/DxePcdLib.c
parenta15bb0d31f5345dd81dde0e978a3cbdc54fa27e7 (diff)
downloadedk2-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/DxePcdLib/DxePcdLib.c')
-rw-r--r--MdePkg/Library/DxePcdLib/DxePcdLib.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.c b/MdePkg/Library/DxePcdLib/DxePcdLib.c
index ec5da259a6..b746614d5b 100644
--- a/MdePkg/Library/DxePcdLib/DxePcdLib.c
+++ b/MdePkg/Library/DxePcdLib/DxePcdLib.c
@@ -57,6 +57,8 @@ LibPcdSetSku (
IN UINTN SkuId
)
{
+ ASSERT (SkuId < 0x100);
+
mPcd->SetSku (SkuId);
return SkuId;
@@ -728,10 +730,15 @@ LibPcdSetExPtr (
EFI_STATUS Status;
UINTN Size;
+ ASSERT (Guid != NULL);
+
+ ASSERT (SizeOfBuffer != NULL);
+
if (*SizeOfBuffer > 0) {
ASSERT (Buffer != NULL);
}
+
Size = LibPcdGetExSize (Guid, TokenNumber);
if (*SizeOfBuffer > Size) {
*SizeOfBuffer = Size;
@@ -901,7 +908,7 @@ LibPcdGetNextToken (
@retval CONST GUID * The next valid token namespace.
**/
-CONST GUID*
+GUID *
EFIAPI
LibPcdGetNextTokenSpace (
IN CONST GUID *Guid
@@ -913,6 +920,6 @@ LibPcdGetNextTokenSpace (
ASSERT_EFI_ERROR (Status);
- return Guid;
+ return (GUID *) Guid;
}