summaryrefslogtreecommitdiff
path: root/com32
diff options
context:
space:
mode:
authorGert Hulselmans <gerth@zytor.com>2011-01-24 23:53:34 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-25 20:54:27 +0100
commit9e1c7c49ac466b91343fd45373d21538d1b33838 (patch)
tree0161cbbbe13bbdc53f625f82788870d2bf6b0913 /com32
parent2a1dd834b9e1f579d6d4fc2cfb72ad70d52b7289 (diff)
downloadsyslinux-9e1c7c49ac466b91343fd45373d21538d1b33838.tar.gz
disklib: Detect DiskCryptor MBR
Add detection code for DiskCryptor MBR to disklib. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/gpllib/disk/mbrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c
index d87acdc5..6150fcf4 100644
--- a/com32/gpllib/disk/mbrs.c
+++ b/com32/gpllib/disk/mbrs.c
@@ -40,6 +40,8 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size)
/* We need more than 2 bytes */
if (((label >> 8) & 0xff) == 0x8e)
strlcpy(buffer, "Windows", buffer_size - 1);
+ else if (((label >> 8) & 0xff) == 0x90)
+ strlcpy(buffer, "DiskCryptor", buffer_size - 1);
else if (((label >> 8) & 0xff) == 0xfa)
strlcpy(buffer, "Syslinux", buffer_size - 1);
else