[syslinux] Patch: Fix isohybrid.c tool under Windows platforms

Colin Finck
Mon, 10 Apr 2017 10:21:16 -0000

Hi all,

As part of a bigger effort to port the ISOLINUX hybrid mode to ReactOS,
I've encountered a bug in isohybrid under Windows platforms. Attached
comes a patch to fix it.

Precisely, if isohybrid currently finds a 0x0A (LF) byte in the MBR code
(which exists in the strings), it adds a 0x0D (CR) before, thereby
shifting the MBR bytes to the right and making it invalid.
This can be fixed by opening the file in binary mode with the "b"
flag.

Cheers,

Colin
-------------- next part --------------