mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
80151e5331
commit
1c9a755423
|
@ -630,7 +630,6 @@ CreateDialog (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
VA_LIST Marker;
|
VA_LIST Marker;
|
||||||
VA_LIST MarkerBackup;
|
|
||||||
UINTN Count;
|
UINTN Count;
|
||||||
EFI_INPUT_KEY Key;
|
EFI_INPUT_KEY Key;
|
||||||
UINTN LargestString;
|
UINTN LargestString;
|
||||||
|
@ -661,7 +660,6 @@ CreateDialog (
|
||||||
ASSERT (BufferedString);
|
ASSERT (BufferedString);
|
||||||
|
|
||||||
VA_START (Marker, KeyValue);
|
VA_START (Marker, KeyValue);
|
||||||
MarkerBackup = Marker;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Zero the outgoing buffer
|
// Zero the outgoing buffer
|
||||||
|
@ -702,6 +700,7 @@ CreateDialog (
|
||||||
LargestString = (GetStringWidth (StackString) / 2);
|
LargestString = (GetStringWidth (StackString) / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
VA_END (Marker);
|
||||||
|
|
||||||
Start = (DimensionsWidth - LargestString - 2) / 2 + gScreenDimensions.LeftColumn + 1;
|
Start = (DimensionsWidth - LargestString - 2) / 2 + gScreenDimensions.LeftColumn + 1;
|
||||||
Top = ((DimensionsHeight - NumberOfLines - 2) / 2) + gScreenDimensions.TopRow - 1;
|
Top = ((DimensionsHeight - NumberOfLines - 2) / 2) + gScreenDimensions.TopRow - 1;
|
||||||
|
@ -711,7 +710,9 @@ CreateDialog (
|
||||||
//
|
//
|
||||||
// Display the Popup
|
// 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?
|
// Take the first key typed and report it back?
|
||||||
|
|
Loading…
Reference in New Issue