Chameleon

Chameleon Commit Details

Date:2013-05-10 16:43:52 (6 years 2 months ago)
Author:ErmaC
Commit:2211
Parents: 2210
Message:Extension without kPropOSBundleRequired property weren't loaded. Credits to Jief Luce
Changes:
M/trunk/i386/boot2/drivers.c

File differences

trunk/i386/boot2/drivers.c
592592
593593
594594
595
595
596596
597597
598598
......
747747
748748
749749
750
751
752
750
751
753752
754753
755754
// Make make in the image area.
execute_hook("LoadMatchedModules", module, &length, executableAddr, NULL);
execute_hook("LoadMatchedModules", module, &length, executableAddr, NULL);
driverLength = sizeof(DriverInfo) + module->plistLength + length + module->bundlePathLength;
driverAddr = AllocateKernelMemory(driverLength);
if (length == -1) return -1;
required = XMLGetProperty(moduleDict, kPropOSBundleRequired);
if ( (required == 0) ||
(required->type != kTagTypeString) ||
!strcmp(required->string, "Safe Boot"))
if ( (required != NULL) && (required->type == kTagTypeString) && !strcmp(required->string, "Safe Boot"))
{
XMLFreeTag(moduleDict);
return -2;

Archive Download the corresponding diff file

Revision: 2211