36 if ((*Buffer ==
NULL) && (BufferSize != 0)) {
37 *Status = EFI_BUFFER_TOO_SMALL;
44 if (*Status == EFI_BUFFER_TOO_SMALL) {
45 if (*Buffer !=
NULL) {
51 if (*Buffer !=
NULL) {
54 *Status = EFI_OUT_OF_RESOURCES;
61 if (!TryAgain && EFI_ERROR (*Status) && (*Buffer !=
NULL)) {
96 while (
GrowBuffer (&Status, (VOID **)&Buffer, BufferSize)) {
97 Status = FHand->GetInfo (
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
#define SIZE_OF_EFI_FILE_INFO
BOOLEAN GrowBuffer(IN OUT EFI_STATUS *Status, IN OUT VOID **Buffer, IN UINTN BufferSize)
EFI_FILE_INFO * FileInfo(IN EFI_FILE_HANDLE FHand)