From 9e1c7c49ac466b91343fd45373d21538d1b33838 Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Mon, 24 Jan 2011 23:53:34 +0100 Subject: [PATCH] disklib: Detect DiskCryptor MBR Add detection code for DiskCryptor MBR to disklib. Signed-off-by: Gert Hulselmans --- com32/gpllib/disk/mbrs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c index d87acdc..6150fcf 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 -- 2.7.4