X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FSetupBrowserDxe%2FPrint.c;h=eeadf2494fb418bea03076e4452c08aa3e51b530;hb=94f3aae730d22aa46dd589f2c8e1ac870204b4b7;hp=1f97ed43b67cc8e13b868785a3fc7f9d10cb896c;hpb=e5eed7d3641d71d7ea539e5379ea9c6a5cd97004;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Print.c b/MdeModulePkg/Universal/SetupBrowserDxe/Print.c index 1f97ed43b6..eeadf2494f 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Print.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Print.c @@ -15,7 +15,7 @@ type: '%' - Print a % -Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.
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 @@ -145,15 +145,19 @@ PrintInternal ( **/ UINTN +EFIAPI ConsolePrint ( IN CHAR16 *Fmt, ... ) { VA_LIST Args; + UINTN LengthOfPrinted; VA_START (Args, Fmt); - return PrintInternal ((UINTN) -1, (UINTN) -1, gST->ConOut, Fmt, Args); + LengthOfPrinted = PrintInternal ((UINTN) -1, (UINTN) -1, gST->ConOut, Fmt, Args); + VA_END (Args); + return LengthOfPrinted; } @@ -206,6 +210,7 @@ PrintChar ( **/ UINTN +EFIAPI PrintAt ( IN UINTN Column, IN UINTN Row, @@ -214,9 +219,12 @@ PrintAt ( ) { VA_LIST Args; + UINTN LengthOfPrinted; VA_START (Args, Fmt); - return PrintInternal (Column, Row, gST->ConOut, Fmt, Args); + LengthOfPrinted = PrintInternal (Column, Row, gST->ConOut, Fmt, Args); + VA_END (Args); + return LengthOfPrinted; }