if (Data->DataCount != 0) {\r
\r
ThunkContext = UefiHiiHandleToThunkContext (Private, UefiHiiHandle);\r
+ ASSERT (ThunkContext != NULL);\r
Status = FwUpdateDataToUefiUpdateData (ThunkContext, Data, StartOpCodeHandle);\r
ASSERT_EFI_ERROR (Status);\r
\r
} else {\r
ASSERT ((Pde & mPhyMask) == (HookAddress & ~(SIZE_2MB-1))); // 2MB Page Point to HookAddress\r
PageTable = AllocatePages (1);\r
+ ASSERT (PageTable != NULL);\r
Address = HookAddress & ~(SIZE_2MB-1);\r
for (Index = 0; Index < 512; Index++) {\r
PageTable[Index] = Address | BIT0 | BIT1; // Present and RW\r
// Assume only one instance of SMM Communication Protocol in the system\r
// Locate SMM Communication Protocol\r
//\r
- gBS->LocateProtocol (&gEfiSmmCommunicationProtocolGuid, NULL, (VOID **) &mSmmCommunication);\r
+ Status = gBS->LocateProtocol (&gEfiSmmCommunicationProtocolGuid, NULL, (VOID **) &mSmmCommunication);\r
ASSERT_EFI_ERROR (Status);\r
\r
//\r