ARM Packages: Corrected non-DOS line endings
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <ronald.cron@arm.com> Reviewed-By: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15832 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
oliviermartin
parent
01ce353813
commit
62d441fb17
@@ -36,7 +36,7 @@ EditHIInputStr (
|
||||
Print (CmdLine);
|
||||
|
||||
// To prevent a buffer overflow, we only allow to enter (MaxCmdLine-1) characters
|
||||
for (CmdLineIndex = StrLen (CmdLine); CmdLineIndex < MaxCmdLine; ) {
|
||||
for (CmdLineIndex = StrLen (CmdLine); CmdLineIndex < MaxCmdLine; ) {
|
||||
Status = gBS->WaitForEvent (1, &gST->ConIn->WaitForKey, &WaitIndex);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
@@ -63,7 +63,7 @@ EditHIInputStr (
|
||||
}
|
||||
} else if ((Key.ScanCode == SCAN_ESC) || (Char == 0x1B) || (Char == 0x0)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
} else if (CmdLineIndex < (MaxCmdLine-1)) {
|
||||
} else if (CmdLineIndex < (MaxCmdLine-1)) {
|
||||
CmdLine[CmdLineIndex++] = Key.UnicodeChar;
|
||||
Print (L"%c", Key.UnicodeChar);
|
||||
}
|
||||
@@ -151,7 +151,7 @@ GetHIInputInteger (
|
||||
@param[out] EFI_IP_ADDRESS OutIpAddr Returned IPv4 address. Valid if
|
||||
and only if the returned value
|
||||
is equal to EFI_SUCCESS
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Input completed
|
||||
@retval EFI_ABORTED Editing aborted by the user
|
||||
@retval EFI_OUT_OF_RESOURCES Fail to perform the operation due to
|
||||
@@ -196,7 +196,7 @@ GetHIInputIP (
|
||||
@param[out] EFI_IP_ADDRESS OutIpAddr Returned IPv4 address. Valid if
|
||||
and only if the returned value
|
||||
is equal to EFI_SUCCESS
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Update completed
|
||||
@retval EFI_ABORTED Editing aborted by the user
|
||||
@retval EFI_INVALID_PARAMETER The string returned by the user is
|
||||
@@ -243,7 +243,7 @@ GetHIInputBoolean (
|
||||
|
||||
while(1) {
|
||||
Print (L"[y/n] ");
|
||||
Status = GetHIInputStr (CmdBoolean, 2);
|
||||
Status = GetHIInputStr (CmdBoolean, 2);
|
||||
if (EFI_ERROR(Status)) {
|
||||
return Status;
|
||||
} else if ((CmdBoolean[0] == L'y') || (CmdBoolean[0] == L'Y')) {
|
||||
|
Reference in New Issue
Block a user