]> code.delx.au - refind/commitdiff
Fixed bug in options line editor that caused unedited lines to be returned as
authorsrs5694 <srs5694@users.sourceforge.net>
Tue, 4 Dec 2012 05:03:40 +0000 (00:03 -0500)
committersrs5694 <srs5694@users.sourceforge.net>
Tue, 4 Dec 2012 05:03:40 +0000 (00:03 -0500)
empty.

NEWS.txt
refind/config.c
refind/main.c
refind/menu.c
refind/screen.c

index e90f0e21d9ad7b85a30d06af6f897e9917b1dfc2..71e0a39df2180fa151b5589d0c48e7ddc47a5c60 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,6 +1,9 @@
-0.4.8 (??/??/2012):
+0.5.0 (??/??/2012):
 -------------------
 
+- Fixed a bug that caused the options line editor to blank out lines that
+  were not actually edited.
+
 - Added support for using Matthew Garrett's Shim program and its Machine
   Owner Keys (MOKs) to extend Secure Boot capabilities. If rEFInd is
   launched from Shim on a computer with Secure Boot active, rEFInd will
@@ -21,7 +24,7 @@
   entry if it's installed as EFI/Microsoft/boot/bootmgfw.efi.
 
 - Added support for launching MokManager.efi for managing the Machine Owner
-  Keys (MOKs) maintained by the Shim boot loader developed by Fedora and
+  Keys (MOKs) maintained by the shim boot loader developed by Fedora and
   SUSE. This program is scanned and presented as a second-row tool.
 
 - Added support for Apple's Recovery HD partition: If it's detected, a new
index 258aa06d2e941c628898bf80cb1cec309df17d12..c22b8307e8ffb96f1ad6fee429267f435e73a8bc 100644 (file)
@@ -649,7 +649,7 @@ static LOADER_ENTRY * AddStanzaEntries(REFIT_FILE *File, REFIT_VOLUME *Volume, C
    return(Entry);
 } // static VOID AddStanzaEntries()
 
-// Read the user-configured loaders file, refind_loaders.conf, and add or delete
+// Read the user-configured menu entries from refind.conf and add or delete
 // entries based on the contents of that file....
 VOID ScanUserConfigured(VOID)
 {
@@ -660,6 +660,7 @@ VOID ScanUserConfigured(VOID)
    CHAR16            *Title = NULL;
    UINTN             TokenCount, size;
    LOADER_ENTRY      *Entry;
+//   REFIT_MENU_SCREEN  *SubScreen;
 
    if (FileExists(SelfDir, CONFIG_FILE_NAME)) {
       Status = ReadFile(SelfDir, CONFIG_FILE_NAME, &File, &size);
index d01291de686a886633022db5bf17aa37b4431f2f..5439188f9fea86f2bab3e32bf004a9298b26f1d3 100644 (file)
@@ -118,7 +118,7 @@ static VOID AboutrEFInd(VOID)
 
     if (AboutMenu.EntryCount == 0) {
         AboutMenu.TitleImage = BuiltinIcon(BUILTIN_ICON_FUNC_ABOUT);
-        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.4.7.7");
+        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.4.7.8");
         AddMenuInfoLine(&AboutMenu, L"");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2010 Christoph Pfisterer");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2012 Roderick W. Smith");
index 5f76da4f541baf8eb1b36ecb4e97ab457cce2f0b..a6e72ad95d95887dc95d374f00562931e6cdea3d 100644 (file)
@@ -923,7 +923,6 @@ VOID MainMenuStyle(IN REFIT_MENU_SCREEN *Screen, IN SCROLL_STATE *State, IN UINT
 static BOOLEAN EditOptions(LOADER_ENTRY *MenuEntry) {
    UINTN x_max, y_max;
    CHAR16 *EditedOptions;
-//   CHAR16 message[] = L"Use cursor keys to edit, Esc to exit, Enter to boot with edited options";
    EG_PIXEL DarkBackgroundPixel  = { 0x0, 0x0, 0x0, 0 };
    BOOLEAN retval = FALSE;
 
@@ -935,7 +934,6 @@ static BOOLEAN EditOptions(LOADER_ENTRY *MenuEntry) {
    egClearScreen(&DarkBackgroundPixel);
 
    refit_call3_wrapper(ST->ConOut->SetCursorPosition, ST->ConOut, 0, y_max - 1);
-//   refit_call2_wrapper(ST->ConOut->OutputString, ST->ConOut, message);
    refit_call2_wrapper(ST->ConOut->OutputString, ST->ConOut,
                        L"Use cursor keys to edit, Esc to exit, Enter to boot with edited options");
 
index 97a494666a54f74b3405aa4f0410caca190c6ee9..ae90f200b315b676403f2485f325430bfcca9f22 100644 (file)
@@ -622,10 +622,8 @@ BOOLEAN line_edit(CHAR16 *line_in, CHAR16 **line_out, UINTN x_max, UINTN y_pos)
       switch (key.UnicodeChar) {
       case CHAR_LINEFEED:
       case CHAR_CARRIAGE_RETURN:
-         if (StrCmp(line, line_in) != 0) {
-            *line_out = line;
-            line = NULL;
-         }
+         *line_out = line;
+         line = NULL;
          enter = TRUE;
          exit = TRUE;
          break;