Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <brendan.jackman@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15515
6f19259b-4bc3-4df7-8a09-
765794883524
)\r
{\r
FileEntry = BOOTMON_FS_FILE_FROM_LINK_THIS (FileLink);\r
+ // Skip files that aren't on disk yet\r
+ if (FileEntry->HwDescription.RegionCount == 0) {\r
+ continue;\r
+ }\r
+\r
// If the free space preceding the file is big enough to contain the new\r
// file then use it!\r
if (((FileEntry->HwDescription.BlockStart * BlockSize) - *FileStart)\r