mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-07 14:11:00 +00:00
Explain byte order handling better.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
8adfd201fe
commit
f0e4df7d5f
10
fallback.c
10
fallback.c
@ -365,9 +365,13 @@ try_boot_csv(EFI_FILE_HANDLE fh, CHAR16 *dirname, CHAR16 *filename)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
CHAR16 *start = buffer;
|
CHAR16 *start = buffer;
|
||||||
/* If I create boot.csv with the efi shell's "edit" command,
|
/* The file may or may not start with the Unicode byte order marker.
|
||||||
* it starts with 0xfeff. I assume there's some reason for this,
|
* Sadness ensues. Since UEFI is defined as LE, I'm going to decree
|
||||||
* but it doesn't matter much to me...
|
* that these files must also be LE.
|
||||||
|
*
|
||||||
|
* IT IS THUS SO.
|
||||||
|
*
|
||||||
|
* But if we find the LE byte order marker, just skip it.
|
||||||
*/
|
*/
|
||||||
if (*start == 0xfeff)
|
if (*start == 0xfeff)
|
||||||
start++;
|
start++;
|
||||||
|
Loading…
Reference in New Issue
Block a user