]> code.delx.au - refind/blobdiff - refind/icns.c
Version supports Secure Boot/MOK verification of binaries.
[refind] / refind / icns.c
index e4738e26486e3d5c807041928f956fda9b62dac4..a9b3f01c689709be5afc9bf6207a3570eafadab0 100644 (file)
@@ -38,6 +38,7 @@
 #include "lib.h"
 #include "icns.h"
 #include "config.h"
+#include "../refind/screen.h"
 
 //
 // well-known icons
@@ -57,6 +58,8 @@ BUILTIN_ICON BuiltinIconTable[BUILTIN_ICON_COUNT] = {
    { NULL, L"tool_shell.icns", 48 },
    { NULL, L"tool_part.icns", 48 },
    { NULL, L"tool_rescue.icns", 48 },
+   { NULL, L"tool_apple_rescue.icns", 48 },
+   { NULL, L"tool_mok_tool.icns", 48 },
    { NULL, L"vol_internal.icns", 32 },
    { NULL, L"vol_external.icns", 32 },
    { NULL, L"vol_optical.icns", 32 },
@@ -100,9 +103,11 @@ EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconNam
 
         // try to load it
         Image = egLoadIcon(SelfDir, FileName, 128);
-        if (Image != NULL)
+        if (Image != NULL) {
+            MyFreePool(CutoutName);
             return Image;
-        FreePool(CutoutName);
+        }
+        MyFreePool(CutoutName);
     } // while
 
     // try the fallback name