diff options
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/UefiLib/UefiLibPrint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiLib/UefiLibPrint.c b/MdePkg/Library/UefiLib/UefiLibPrint.c index 6eadc120c8..1bf6d26821 100644 --- a/MdePkg/Library/UefiLib/UefiLibPrint.c +++ b/MdePkg/Library/UefiLib/UefiLibPrint.c @@ -742,8 +742,11 @@ CatVSPrint ( UINTN CharactersRequired;
UINTN SizeRequired;
CHAR16 *BufferToReturn;
+ VA_LIST ExtraMarker;
- CharactersRequired = SPrintLength(FormatString, Marker);
+ VA_COPY (ExtraMarker, Marker);
+ CharactersRequired = SPrintLength(FormatString, ExtraMarker);
+ VA_END (ExtraMarker);
if (String != NULL) {
SizeRequired = StrSize(String) + (CharactersRequired * sizeof(CHAR16));
|