mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
make allocate instead of new
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
c77802d200
commit
9d6949c98f
@ -5074,8 +5074,10 @@ GetUserSettings(
|
|||||||
for (j = 0; j < PropCount; j++) {
|
for (j = 0; j < PropCount; j++) {
|
||||||
Prop3 = NULL;
|
Prop3 = NULL;
|
||||||
DevProps = *Child;
|
DevProps = *Child;
|
||||||
// *Child = (__typeof_am__(*Child))AllocateZeroPool(sizeof(**Child));
|
*Child = (__typeof_am__(*Child))AllocateZeroPool(sizeof(**Child));
|
||||||
*Child = new (__typeof_am__(**Child));
|
DBG("created *Child sizeof %d\n", sizeof(**Child));
|
||||||
|
|
||||||
|
// *Child = new (__typeof_am__(**Child));
|
||||||
(*Child)->Next = DevProps;
|
(*Child)->Next = DevProps;
|
||||||
|
|
||||||
if (EFI_ERROR(GetElement(Prop2, j, &Prop3))) { // Prop3 -> <key>
|
if (EFI_ERROR(GetElement(Prop2, j, &Prop3))) { // Prop3 -> <key>
|
||||||
|
Loading…
Reference in New Issue
Block a user