提交 6073123b 编写于 作者: V vit9696

OpenCoreKernel: Switch to SafeFileOpen

上级 0eeaa1d4
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
......
......@@ -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"
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册