| 729 | } |
| 730 | |
| 731 | BOOLEAN |
| 732 | IsVtfFile ( |
| 733 | IN EFI_FFS_FILE_HEADER *FileBuffer |
| 734 | ) |
| 735 | /*++ |
| 736 | |
| 737 | Routine Description: |
| 738 | |
| 739 | This function checks the header to validate if it is a VTF file |
| 740 | |
| 741 | Arguments: |
| 742 | |
| 743 | FileBuffer Buffer in which content of a file has been read. |
| 744 | |
| 745 | Returns: |
| 746 | |
| 747 | TRUE If this is a VTF file |
| 748 | FALSE If this is not a VTF file |
| 749 | |
| 750 | --*/ |
| 751 | { |
| 752 | if (!memcmp (&FileBuffer->Name, &mEfiFirmwareVolumeTopFileGuid, sizeof (EFI_GUID))) { |
| 753 | return TRUE; |
| 754 | } else { |
| 755 | return FALSE; |
| 756 | } |
| 757 | } |
| 758 | |
| 759 | EFI_STATUS |
| 760 | WriteMapFile ( |
no test coverage detected