mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35: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++) {
|
||||
Prop3 = NULL;
|
||||
DevProps = *Child;
|
||||
// *Child = (__typeof_am__(*Child))AllocateZeroPool(sizeof(**Child));
|
||||
*Child = new (__typeof_am__(**Child));
|
||||
*Child = (__typeof_am__(*Child))AllocateZeroPool(sizeof(**Child));
|
||||
DBG("created *Child sizeof %d\n", sizeof(**Child));
|
||||
|
||||
// *Child = new (__typeof_am__(**Child));
|
||||
(*Child)->Next = DevProps;
|
||||
|
||||
if (EFI_ERROR(GetElement(Prop2, j, &Prop3))) { // Prop3 -> <key>
|
||||
|
Loading…
Reference in New Issue
Block a user