Show
Ignore:
Timestamp:
10/28/09 19:10:12 (3 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
597475b65fd75a8a0b98b3668661f0f1a6e2754e
Parents:
53fb37cfa09127a56dc68c95f3dfa877d11452f4
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-10-28T20:10:12Z+0100
Message:

disklib: Fixing Syslinux Detection

Impact: Syslinux is now detected as bootloader

A test wasn't correct and prevented the Syslinux mbr detection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/gpllib/disk/mbrs.c

    ra4af14 r8551c7  
    4444        case 0xfa31: 
    4545                /* We need more than 2 bytes */ 
    46                 if ((label >> 8) & 0xff == 0xc9) 
     46                if (((label >> 8) & 0xff) == 0xc9) 
    4747                        strncpy(buffer, "Master Boot LoaDeR", buffer_size - 1); 
    48                 else if ((label >> 8) & 0xff == 0xc0) 
     48                else if (((label >> 8) & 0xff) == 0xc0) 
    4949                        strncpy(buffer, "Syslinux", buffer_size - 1); 
    5050                else