aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-10-28 20:10:12 +0100
committerErwan Velu <erwan.velu@free.fr>2009-10-28 20:10:12 +0100
commit8551c77556c3b1d04c64221a2150d72ef910cc12 (patch)
treeabe6029872c036319a0b049590e86734ac5d379b /com32/gpllib
parent53fb37cfa09127a56dc68c95f3dfa877d11452f4 (diff)
downloadsyslinux-8551c77556c3b1d04c64221a2150d72ef910cc12.tar.gz
syslinux-8551c77556c3b1d04c64221a2150d72ef910cc12.tar.xz
syslinux-8551c77556c3b1d04c64221a2150d72ef910cc12.zip
disklib: Fixing Syslinux Detection
Impact: Syslinux is now detected as bootloader A test wasn't correct and prevented the Syslinux mbr detection
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/disk/mbrs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c
index b5e271b7..6719d8de 100644
--- a/com32/gpllib/disk/mbrs.c
+++ b/com32/gpllib/disk/mbrs.c
@@ -43,9 +43,9 @@ void get_mbr_string(const uint32_t label, char* buffer, const int buffer_size)
case 0xeb5e: strncpy(buffer, "Grub4Dos", buffer_size - 1); break;
case 0xfa31:
/* We need more than 2 bytes */
- if ((label >> 8) & 0xff == 0xc9)
+ if (((label >> 8) & 0xff) == 0xc9)
strncpy(buffer, "Master Boot LoaDeR", buffer_size - 1);
- else if ((label >> 8) & 0xff == 0xc0)
+ else if (((label >> 8) & 0xff) == 0xc0)
strncpy(buffer, "Syslinux", buffer_size - 1);
else
strncpy(buffer, "Unknown mbr", buffer_size - 1); break;