mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-24 16:27:42 +01:00
Correct mistake in devtree memory allocation
This commit is contained in:
parent
80d1b0b9da
commit
78e3bece9f
@ -5074,7 +5074,7 @@ GetUserSettings(
|
||||
for (j = 0; j < PropCount; j++) {
|
||||
Prop3 = NULL;
|
||||
DevProps = *Child;
|
||||
*Child = (__typeof_am__(*Child))AllocateZeroPool(sizeof(__typeof_am__(*Child)));
|
||||
*Child = (__typeof_am__(*Child))AllocateZeroPool(sizeof(DEV_PROPERTY));
|
||||
(*Child)->Next = DevProps;
|
||||
|
||||
if (EFI_ERROR(GetElement(Prop2, j, &Prop3))) { // Prop3 -> <key>
|
||||
|
Loading…
Reference in New Issue
Block a user