X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FSetupBrowserDxe%2FUi.c;h=ae8d9a62d790505ae0f7f1f1d782354873dba7dd;hb=d1a54e2c3eb4dccf2f43ea3e6638f5e1639ad586;hp=fad0f7f4893475bcfc146f6c2c047579daf85554;hpb=f4113e1fdb95c35145a86067c82267610625de74;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index fad0f7f489..ae8d9a62d7 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -117,6 +117,7 @@ SCREEN_OPERATION_T0_CONTROL_FLAG gScreenOperationToControlFlag[] = { }; BOOLEAN mInputError; +BOOLEAN GetLineByWidthFinished = FALSE; /** @@ -1075,9 +1076,6 @@ GetWidth ( return Width; } - -BOOLEAN GetLineByWidthFinished = FALSE; - /** Will copy LineWidth amount of a string in the OutputString buffer and return the number of CHAR16 characters that were copied into the OutputString buffer. @@ -1218,7 +1216,7 @@ UpdateOptionSkipLines ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&OptionString[Index])) { + if (StrLen (&OptionString[Index]) != 0) { if (SkipValue == 0) { Row++; // @@ -1635,7 +1633,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&MenuOption->Description[Index])) { + if (StrLen (&MenuOption->Description[Index]) != 0) { if (Temp == 0) { Row++; } @@ -1730,7 +1728,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&OptionString[Index])) { + if (StrLen (&OptionString[Index]) != 0) { if (Temp2 == 0) { Row++; // @@ -1773,7 +1771,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&StringPtr[Index])) { + if (StrLen (&StringPtr[Index]) != 0) { if (Temp2 == 0) { Row++; // @@ -1947,7 +1945,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&OptionString[Index])) { + if (StrLen (&OptionString[Index]) != 0) { MenuOption->Row++; } @@ -1975,7 +1973,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&MenuOption->Description[Index])) { + if (StrLen (&MenuOption->Description[Index]) != 0) { MenuOption->Row++; } @@ -2053,7 +2051,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&OptionString[Index])) { + if (StrLen (&OptionString[Index]) != 0) { MenuOption->Row++; } @@ -2076,7 +2074,7 @@ UiDisplayMenu ( // // If there is more string to process print on the next row and increment the Skip value // - if (StrLen (&MenuOption->Description[Index])) { + if (StrLen (&MenuOption->Description[Index]) != 0) { MenuOption->Row++; }