From 3877d988f300a89c7ffc9cb0b2b04aa383a407df Mon Sep 17 00:00:00 2001 From: jief666 Date: Fri, 18 Sep 2020 12:12:15 +0300 Subject: [PATCH] OcKernelCache Auto if empty string. --- rEFIt_UEFI/Platform/Settings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rEFIt_UEFI/Platform/Settings.cpp b/rEFIt_UEFI/Platform/Settings.cpp index 1eeffa14e..1bd9e9ada 100644 --- a/rEFIt_UEFI/Platform/Settings.cpp +++ b/rEFIt_UEFI/Platform/Settings.cpp @@ -852,7 +852,11 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches, Prop = DictPointer->propertyForKey("OcKernelCache"); if (Prop != NULL || gBootChanged) { if ( Prop->isString() ) { - Patches->OcKernelCache = Prop->getString()->stringValue(); + if ( Prop->getString()->stringValue().notEmpty() ) { + Patches->OcKernelCache = Prop->getString()->stringValue(); + }else{ + Patches->OcKernelCache = "Auto"_XS8; + } }else{ MsgLog("MALFORMED PLIST : KernelAndKextPatches/KernelCache must be a string"); Patches->OcKernelCache = "Auto"_XS8;