MdeModulePkg DxeCore/PiSmmCore/MemoryProfileInfo: Fix EBC and VS2013 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16396 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -817,6 +817,8 @@ CoreUpdateProfileAllocate (
|
||||
MEMORY_PROFILE_ALLOC_INFO_DATA *AllocInfoData;
|
||||
EFI_MEMORY_TYPE ProfileMemoryIndex;
|
||||
|
||||
AllocInfoData = NULL;
|
||||
|
||||
ContextData = GetMemoryProfileContext ();
|
||||
if (ContextData == NULL) {
|
||||
return FALSE;
|
||||
|
@@ -824,6 +824,8 @@ SmmCoreUpdateProfileAllocate (
|
||||
MEMORY_PROFILE_ALLOC_INFO_DATA *AllocInfoData;
|
||||
EFI_MEMORY_TYPE ProfileMemoryIndex;
|
||||
|
||||
AllocInfoData = NULL;
|
||||
|
||||
ContextData = GetSmramProfileContext ();
|
||||
if (ContextData == NULL) {
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user