]> code.delx.au - refind/commitdiff
Fixed very minor GUID-interpretation bug and adjusted
authorsrs5694 <srs5694@users.sourceforge.net>
Sun, 18 May 2014 23:27:24 +0000 (19:27 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Sun, 18 May 2014 23:27:24 +0000 (19:27 -0400)
refind.conf-sample to reference .png rather than .icns icons.

NEWS.txt
refind.conf-sample
refind/lib.c
refind/main.c

index 05ec22fd5ec6c278e9a2ae5ad94747f073412eb3..fac4224a818ff3aca5ea07fca9462695c0df6d95 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,6 +1,9 @@
 0.8.2 (5/??/2014):
 ------------------
 
+- Fixed bug that could misidentify a not-quite-GUID as a GUID in a
+  manual boot stanza's "volume" line.
+
 - I've updated my personal build system, and therefore the rEFInd Makefiles
   and related files, to use TianoCore UDK2014 rather than UDK2010.
 
index 9355a1fc273dffa68b3a35b790446bb56d48358d..30f62b7f2efed9c8531fba0827cf0fed1a0f0899 100644 (file)
@@ -392,7 +392,7 @@ scan_all_linux_kernels
 # specification. Also note that a leading slash is optional in file
 # specifications.
 menuentry Linux {
-       icon EFI/refind/icons/os_linux.icns
+       icon EFI/refind/icons/os_linux.png
        volume KERNELS
        loader bzImage-3.3.0-rc7
        initrd initrd-3.3.0.img
@@ -404,7 +404,7 @@ menuentry Linux {
 # its GRUB 2 boot loader. Note uses of Linux-style forward slashes
 menuentry Ubuntu {
        loader /EFI/ubuntu/grubx64.efi
-       icon /EFI/refined/icons/os_linux.icns
+       icon /EFI/refined/icons/os_linux.png
        disabled
 }
 
@@ -429,7 +429,7 @@ menuentry "Windows 7" {
 # could initialize hardware and then launch an OS, or it could
 # do something entirely different.
 menuentry "Windows via shell script" {
-       icon \EFI\refind\icons\os_win.icns
+       icon \EFI\refind\icons\os_win.png
        loader \EFI\tools\shell.efi
        options "fs0:\EFI\tools\launch_windows.nsh"
        disabled
@@ -442,7 +442,7 @@ menuentry "Windows via shell script" {
 # certainly need to change the "volume" line for this example
 # to work.
 menuentry "My Mac OS X" {
-       icon \EFI\refind\icons\os_mac.icns
+       icon \EFI\refind\icons\os_mac.png
        volume "OS X boot"
        loader \System\Library\CoreServices\boot.efi
        disabled
index b4dc2ec888b6cc87a3a95e288cdd3228a1c147b9..12b5ce389f2dc1f6bcfd7592aba47e1032a9c2fc 100644 (file)
@@ -2025,11 +2025,12 @@ BOOLEAN IsGuid(CHAR16 *UnknownString) {
 
    for (i = 0; i < Length; i++) {
       a = UnknownString[i];
-      if (((i == 8) || (i == 13) || (i == 18) || (i == 23)) && (a != '-')) {
-         retval = FALSE;
+      if ((i == 8) || (i == 13) || (i == 18) || (i == 23)) {
+         if (a != '-')
+            retval = FALSE;
       } else if (((a < 'a') || (a > 'f')) && ((a < 'A') || (a > 'F')) && ((a < '0') && (a > '9'))) {
          retval = FALSE;
-      } // if/else
+      } // if/else if
    } // for
    return retval;
 } // BOOLEAN IsGuid()
index 45d544cdf31d99609c801fe52e2c6a6b16043ac3..da6026d860ea93f3b68e9b5bf52834074852678e 100644 (file)
@@ -168,7 +168,7 @@ static VOID AboutrEFInd(VOID)
 
     if (AboutMenu.EntryCount == 0) {
         AboutMenu.TitleImage = BuiltinIcon(BUILTIN_ICON_FUNC_ABOUT);
-        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.8.1.1");
+        AddMenuInfoLine(&AboutMenu, L"rEFInd Version 0.8.1.2");
         AddMenuInfoLine(&AboutMenu, L"");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2010 Christoph Pfisterer");
         AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2012-2014 Roderick W. Smith");