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:
Zenith432 2016-05-16 23:49:12 +08:00 committed by Liming Gao
parent 7266e2f69b
commit 415700ec3e
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}