projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1dd83
)
disklib: Detect DiskCryptor MBR
author
Gert Hulselmans
<gerth@zytor.com>
Mon, 24 Jan 2011 22:53:34 +0000
(23:53 +0100)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Tue, 25 Jan 2011 19:54:27 +0000
(20:54 +0100)
Add detection code for DiskCryptor MBR to disklib.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
com32/gpllib/disk/mbrs.c
patch
|
blob
|
history
diff --git
a/com32/gpllib/disk/mbrs.c
b/com32/gpllib/disk/mbrs.c
index
d87acdc
..
6150fcf
100644
(file)
--- 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