Update code to support VS2013 tool chain.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15695 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Handles non-volatile variable store garbage collection, using FTW
|
||||
(Fault Tolerant Write) protocol.
|
||||
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -47,6 +47,7 @@ GetLbaAndOffsetByAddress (
|
||||
EFI_FV_BLOCK_MAP_ENTRY *FvbMapEntry;
|
||||
UINT32 LbaIndex;
|
||||
|
||||
Fvb = NULL;
|
||||
*Lba = (EFI_LBA) (-1);
|
||||
*Offset = 0;
|
||||
|
||||
|
@@ -3344,6 +3344,9 @@ GetFvbInfoByAddress (
|
||||
EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
|
||||
EFI_FVB_ATTRIBUTES_2 Attributes;
|
||||
|
||||
Fvb = NULL;
|
||||
HandleBuffer = NULL;
|
||||
|
||||
//
|
||||
// Get all FVB handles.
|
||||
//
|
||||
|
@@ -4,7 +4,7 @@
|
||||
and volatile storage space and install variable architecture protocol
|
||||
based on SMM variable module.
|
||||
|
||||
Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -195,6 +195,7 @@ VariableLockRequestToLock (
|
||||
}
|
||||
|
||||
VariableNameSize = StrSize (VariableName);
|
||||
VariableToLock = NULL;
|
||||
|
||||
//
|
||||
// If VariableName exceeds SMM payload limit. Return failure
|
||||
@@ -272,6 +273,7 @@ RuntimeServiceGetVariable (
|
||||
|
||||
TempDataSize = *DataSize;
|
||||
VariableNameSize = StrSize (VariableName);
|
||||
SmmVariableHeader = NULL;
|
||||
|
||||
//
|
||||
// If VariableName exceeds SMM payload limit. Return failure
|
||||
@@ -374,6 +376,7 @@ RuntimeServiceGetNextVariableName (
|
||||
|
||||
OutVariableNameSize = *VariableNameSize;
|
||||
InVariableNameSize = StrSize (VariableName);
|
||||
SmmGetNextVariableName = NULL;
|
||||
|
||||
//
|
||||
// If input string exceeds SMM payload limit. Return failure
|
||||
@@ -491,6 +494,7 @@ RuntimeServiceSetVariable (
|
||||
}
|
||||
|
||||
VariableNameSize = StrSize (VariableName);
|
||||
SmmVariableHeader = NULL;
|
||||
|
||||
//
|
||||
// If VariableName or DataSize exceeds SMM payload limit. Return failure
|
||||
@@ -561,6 +565,8 @@ RuntimeServiceQueryVariableInfo (
|
||||
UINTN PayloadSize;
|
||||
SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO *SmmQueryVariableInfo;
|
||||
|
||||
SmmQueryVariableInfo = NULL;
|
||||
|
||||
if(MaximumVariableStorageSize == NULL || RemainingVariableStorageSize == NULL || MaximumVariableSize == NULL || Attributes == 0) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
Reference in New Issue
Block a user