\r
#include "BBSsupport.h"\r
\r
-EFI_DEVICE_PATH_PROTOCOL EndDevicePath[] = {\r
- END_DEVICE_PATH_TYPE,\r
- END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
- END_DEVICE_PATH_LENGTH,\r
- 0\r
-};\r
-\r
/**\r
\r
Translate the first n characters of an Ascii string to\r
//\r
UnicodeToAscii (BootDesc, StrSize (BootDesc), HelpString);\r
StringLen = AsciiStrLen (HelpString);\r
- NewBbsDevPathNode = EfiAllocateZeroPool (sizeof (BBS_BBS_DEVICE_PATH) + StringLen);\r
+ NewBbsDevPathNode = AllocateZeroPool (sizeof (BBS_BBS_DEVICE_PATH) + StringLen);\r
if (NewBbsDevPathNode == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
sizeof (BBS_TABLE) +\r
sizeof (UINT16);\r
\r
- Buffer = EfiAllocateZeroPool (BufferSize);\r
+ Buffer = AllocateZeroPool (BufferSize);\r
if (Buffer == NULL) {\r
FreePool (NewBbsDevPathNode);\r
FreePool (CurrentBbsDevPath);\r
SafeFreePool (Buffer);\r
Buffer = NULL;\r
\r
- NewBootOrderList = EfiAllocateZeroPool (*BootOrderListSize + sizeof (UINT16));\r
+ NewBootOrderList = AllocateZeroPool (*BootOrderListSize + sizeof (UINT16));\r
if (NULL == NewBootOrderList) {\r
FreePool (NewBbsDevPathNode);\r
FreePool (CurrentBbsDevPath);\r
TotalSize += (HeaderSize + sizeof (UINT16) * NETCount);\r
TotalSize += (HeaderSize + sizeof (UINT16) * BEVCount);\r
\r
- DevOrder = EfiAllocateZeroPool (TotalSize);\r
+ DevOrder = AllocateZeroPool (TotalSize);\r
if (NULL == DevOrder) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
TotalSize += (HeaderSize + NETCount * sizeof (UINT16));\r
TotalSize += (HeaderSize + BEVCount * sizeof (UINT16));\r
\r
- NewDevOrder = EfiAllocateZeroPool (TotalSize);\r
+ NewDevOrder = AllocateZeroPool (TotalSize);\r
if (NULL == NewDevOrder) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r