make allocate instead of new

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-02-27 23:13:38 +03:00
parent c77802d200
commit 9d6949c98f

View File

@ -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>