From 7174e04c2b4e399cc4f27547453c953d7c3ceba9 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Fri, 13 Feb 2009 06:39:44 +0000 Subject: 1.enhanced security check. 2.remove un-necessary ASSERT. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7522 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/PCD/Dxe/Service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal/PCD/Dxe') diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index 977db39d42..9ef83ef658 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -762,7 +762,7 @@ SetWorker ( PcdDb = IsPeiDb ? ((UINT8 *) &mPcdDatabase->PeiDb) : ((UINT8 *) &mPcdDatabase->DxeDb); StringTable = (UINT16 *) (IsPeiDb ? &mPcdDatabase->PeiDb.Init.StringTable[0] : - &mPcdDatabase->DxeDb.Init.StringTable[0]); + &mPcdDatabase->DxeDb.Init.StringTable[0]); InternalData = PcdDb + Offset; @@ -789,8 +789,8 @@ SetWorker ( } } - GuidTable = IsPeiDb ? mPcdDatabase->PeiDb.Init.GuidTable : - mPcdDatabase->DxeDb.Init.GuidTable; + GuidTable = (EFI_GUID *) (IsPeiDb ? &mPcdDatabase->PeiDb.Init.GuidTable[0] : + &mPcdDatabase->DxeDb.Init.GuidTable[0]); VariableHead = (VARIABLE_HEAD *) (PcdDb + Offset); -- cgit v1.2.3