summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-23 05:32:33 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-23 05:32:33 +0000
commit1c9a755423d58152212f7db52dcd6883aae17cf2 (patch)
tree79b5879f103d44717717b6968e992f93a5e3a2c0 /MdeModulePkg
parent80151e53310a3ef57e85ac1efc4f843d0a1c0824 (diff)
downloadedk2-1c9a755423d58152212f7db52dcd6883aae17cf2.tar.gz
edk2-1c9a755423d58152212f7db52dcd6883aae17cf2.tar.bz2
edk2-1c9a755423d58152212f7db52dcd6883aae17cf2.zip
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Ui.c7
1 files 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?