From 6073123b79d3443722ab1a52e9b3dcc84632bf37 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Thu, 6 Feb 2020 00:43:21 +0300 Subject: [PATCH] OpenCoreKernel: Switch to SafeFileOpen --- Changelog.md | 4 ++++ Include/OpenCore.h | 11 ----------- Platform/OpenCore/OpenCoreKernel.c | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Changelog.md b/Changelog.md index 3f186a9d..58d68159 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,10 @@ OpenCore Changelog ================== +#### v0.5.6 +- Various improvements to builtin text renderer +- Fixed locating dmg recovery in APTIO IV firmwares on FAT32 + #### v0.5.5 - Fixed CPU bus ratio calculation for Nehalem and Westmere - Fixed CPU package calculation on MacPro5,1 and similar diff --git a/Include/OpenCore.h b/Include/OpenCore.h index 7a978002..f45d15fc 100644 --- a/Include/OpenCore.h +++ b/Include/OpenCore.h @@ -47,17 +47,6 @@ #define OPEN_CORE_IMAGE_PATH L"EFI\\OC\\OpenCore.efi" -/** - Multiple boards, namely ASUS P8H61-M and P8H61-M LX2 will not - open directories with trailing slash. It is irrelevant whether - front slash is present for them. - - This means L"EFI\\OC\\" and L"\\EFI\\OC\\" will both fail to open, - while L"EFI\\OC" and L"\\EFI\\OC" will open fine. - - We do not open any directories except root path and dmg, so the - hack lives here. -**/ #define OPEN_CORE_ROOT_PATH L"EFI\\OC" #define OPEN_CORE_CONFIG_PATH L"config.plist" diff --git a/Platform/OpenCore/OpenCoreKernel.c b/Platform/OpenCore/OpenCoreKernel.c index 70b923b1..652420f9 100644 --- a/Platform/OpenCore/OpenCoreKernel.c +++ b/Platform/OpenCore/OpenCoreKernel.c @@ -666,7 +666,7 @@ OcKernelFileOpen ( EFI_TIME ModificationTime; UINT32 DarwinVersion; - Status = This->Open (This, NewHandle, FileName, OpenMode, Attributes); + Status = SafeFileOpen (This, NewHandle, FileName, OpenMode, Attributes); DEBUG (( DEBUG_VERBOSE, -- GitLab