Signed-off-by: ydong10
Reviewed-by: vanjeff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12474
6f19259b-4bc3-4df7-8a09-
765794883524
&gEfiGlobalVariableGuid,\r
&DriverOrderListSize\r
);\r
&gEfiGlobalVariableGuid,\r
&DriverOrderListSize\r
);\r
+ ASSERT (DriverOrderList != NULL);\r
NewDriverOrderList = AllocateZeroPool (DriverOrderListSize + sizeof (UINT16));\r
ASSERT (NewDriverOrderList != NULL);\r
CopyMem (NewDriverOrderList, DriverOrderList, DriverOrderListSize);\r
NewDriverOrderList = AllocateZeroPool (DriverOrderListSize + sizeof (UINT16));\r
ASSERT (NewDriverOrderList != NULL);\r
CopyMem (NewDriverOrderList, DriverOrderList, DriverOrderListSize);\r
&gEfiGlobalVariableGuid,\r
&BootOrderListSize\r
);\r
&gEfiGlobalVariableGuid,\r
&BootOrderListSize\r
);\r
+ ASSERT (BootOrderList != NULL);\r
NewBootOrderList = AllocateZeroPool (BootOrderListSize + sizeof (UINT16));\r
ASSERT (NewBootOrderList != NULL);\r
CopyMem (NewBootOrderList, BootOrderList, BootOrderListSize);\r
NewBootOrderList = AllocateZeroPool (BootOrderListSize + sizeof (UINT16));\r
ASSERT (NewBootOrderList != NULL);\r
CopyMem (NewBootOrderList, BootOrderList, BootOrderListSize);\r