operator new works with DevProps

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-02-29 08:19:23 +03:00
parent e05286e4a4
commit 28fd5f1353

View File

@ -5073,8 +5073,8 @@ GetUserSettings(
for (INTN 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));
*Child = new (__typeof_am__(**Child))();
(*Child)->Next = DevProps;
if (EFI_ERROR(GetElement(Prop2, j, &Prop3))) { // Prop3 -> <key>