From 1c9a755423d58152212f7db52dcd6883aae17cf2 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Thu, 23 Jul 2009 05:32:33 +0000 Subject: [PATCH] Remove use of BackupMarker local variable in CreateDialog() because assigning a VA_LIST in this manner is not portable to all tool chains. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8981 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index 2885ae3950..264bee6465 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -630,7 +630,6 @@ CreateDialog ( ) { VA_LIST Marker; - VA_LIST MarkerBackup; UINTN Count; EFI_INPUT_KEY Key; UINTN LargestString; @@ -661,7 +660,6 @@ CreateDialog ( ASSERT (BufferedString); VA_START (Marker, KeyValue); - MarkerBackup = Marker; // // Zero the outgoing buffer @@ -702,6 +700,7 @@ CreateDialog ( LargestString = (GetStringWidth (StackString) / 2); } } + VA_END (Marker); Start = (DimensionsWidth - LargestString - 2) / 2 + gScreenDimensions.LeftColumn + 1; Top = ((DimensionsHeight - NumberOfLines - 2) / 2) + gScreenDimensions.TopRow - 1; @@ -711,7 +710,9 @@ CreateDialog ( // // Display the Popup // - CreateSharedPopUp (LargestString, NumberOfLines, MarkerBackup); + VA_START (Marker, KeyValue); + CreateSharedPopUp (LargestString, NumberOfLines, Marker); + VA_END (Marker); // // Take the first key typed and report it back?