| 1449 | } |
| 1450 | |
| 1451 | VOID DirIterOpen(IN EFI_FILE *BaseDir, IN CONST CHAR16 *RelativePath OPTIONAL, OUT REFIT_DIR_ITER *DirIter) |
| 1452 | { |
| 1453 | if (RelativePath == NULL) { |
| 1454 | DirIter->LastStatus = EFI_SUCCESS; |
| 1455 | DirIter->DirHandle = BaseDir; |
| 1456 | DirIter->CloseDirHandle = FALSE; |
| 1457 | } else { |
| 1458 | DirIter->LastStatus = BaseDir->Open(BaseDir, &(DirIter->DirHandle), RelativePath, EFI_FILE_MODE_READ, 0); |
| 1459 | DirIter->CloseDirHandle = EFI_ERROR(DirIter->LastStatus) ? FALSE : TRUE; |
| 1460 | } |
| 1461 | DirIter->LastFileInfo = NULL; |
| 1462 | } |
| 1463 | |
| 1464 | BOOLEAN DirIterNext(IN OUT REFIT_DIR_ITER *DirIter, IN UINTN FilterMode, IN CONST CHAR16 *FilePattern OPTIONAL, |
| 1465 | OUT EFI_FILE_INFO **DirEntry) |
no test coverage detected