diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-10 06:20:50 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-10 06:20:50 +0000 |
commit | 3ecdcd1146b8268eea8a550e883121c566a9aef8 (patch) | |
tree | 93686f11687a79a0c5b3ffde80daa8322fc678e5 /MdePkg/Library/DxeHobLib | |
parent | eecd469b1064cd253f0b1c666659505659f8d121 (diff) | |
download | edk2-platforms-3ecdcd1146b8268eea8a550e883121c566a9aef8.tar.xz |
Update HobLib and PeCoffLib according to MDE Lib Spec 0.61c
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6100 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/DxeHobLib')
-rw-r--r-- | MdePkg/Library/DxeHobLib/HobLib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c index 810bfa5fbf..d6e9e5fed6 100644 --- a/MdePkg/Library/DxeHobLib/HobLib.c +++ b/MdePkg/Library/DxeHobLib/HobLib.c @@ -56,6 +56,7 @@ HobLibConstructor ( /**
Returns the pointer to the HOB list.
+ ASSERT() if the HOB list returned by GetHobList() is NULL.
This function returns the pointer to first HOB in the list.
@@ -68,6 +69,7 @@ GetHobList ( VOID
)
{
+ ASSERT (mHobList != NULL);
return mHobList;
}
@@ -218,7 +220,6 @@ GetBootModeHob ( EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;
HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList ();
- ASSERT (HandOffHob != NULL);
return HandOffHob->BootMode;
}
|