Fix RR alignment bug in the grubfs iso9660 driver which prevented CD directory entries from being read correctly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@777 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland 2010-05-24 20:55:21 +00:00 committed by Mark Cave-Ayland
parent aa9dde5d19
commit 00b2f978f8
1 changed files with 2 additions and 2 deletions

View File

@ -173,8 +173,8 @@ iso9660_dir (char *dirname)
rr_ptr.ptr = ((char *)idr + idr->name_len.ENDIAN
+ sizeof(struct iso_directory_record)
- sizeof(idr->name));
if (rr_ptr.i & 1)
rr_ptr.i++, rr_len--;
if (rr_len & 1)
rr_ptr.ptr++, rr_len--;
ce_ptr = NULL;
rr_flag = RR_FLAG_NM | RR_FLAG_PX;