mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Terminate two unterminated VA_COPYs in CheckRemainingSpaceForConsistencyInternal()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zenith432 <zenith432@users.sourceforge.net> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
7266e2f69b
commit
415700ec3e
|
@ -1771,6 +1771,7 @@ CheckRemainingSpaceForConsistencyInternal (
|
|||
TotalNeededSize += VariableEntry->VariableSize;
|
||||
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
|
||||
}
|
||||
VA_END (Args);
|
||||
|
||||
if (RemainingVariableStorageSize >= TotalNeededSize) {
|
||||
//
|
||||
|
@ -1823,6 +1824,7 @@ CheckRemainingSpaceForConsistencyInternal (
|
|||
RemainingVariableStorageSize -= VariableEntry->VariableSize;
|
||||
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
|
||||
}
|
||||
VA_END (Args);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue