From 2a1dd834b9e1f579d6d4fc2cfb72ad70d52b7289 Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Tue, 25 Jan 2011 00:17:57 +0100 Subject: [PATCH] disklib: Detect "FreeDOS (eXtended FDisk)" MBR Add detection code for "FreeDOS (eXtended FDisk)" MBR to disklib. Signed-off-by: Gert Hulselmans --- com32/gpllib/disk/mbrs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c index 82b45c0..d87acdc 100644 --- a/com32/gpllib/disk/mbrs.c +++ b/com32/gpllib/disk/mbrs.c @@ -27,7 +27,6 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) switch (s_label) { case 0x0000: - case 0xfab8: case 0xfabe: strlcpy(buffer, "No bootloader", buffer_size - 1); break; @@ -99,6 +98,9 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) case 0xfa33: strlcpy(buffer, "MS-DOS 3.30 through Windows 95 (A)", buffer_size - 1); break; + case 0xfab8: + strlcpy(buffer, "FreeDOS (eXtended FDisk)", buffer_size - 1); + break; case 0xfaeb: strlcpy(buffer, "Lilo", buffer_size - 1); break; -- 2.7.4