[syslinux:master] disklib: Detect "MS-DOS 3.30 through Windows 95 (A)" MBR

syslinux-bot for Gert Hulselmans gerth at zytor.com
Tue Jan 25 17:00:06 PST 2011


Commit-ID:  dbc4b9f8092cd9a500149cc3a10a9a38c11a580b
Gitweb:     http://syslinux.zytor.com/commit/dbc4b9f8092cd9a500149cc3a10a9a38c11a580b
Author:     Gert Hulselmans <gerth at zytor.com>
AuthorDate: Tue, 25 Jan 2011 00:12:48 +0100
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Tue, 25 Jan 2011 20:54:17 +0100

disklib: Detect "MS-DOS 3.30 through Windows 95 (A)" MBR

Add detection code for "MS-DOS 3.30 through Windows 95 (A)" MBR to disklib.

Signed-off-by: Gert Hulselmans <gerth at zytor.com>


---
 com32/gpllib/disk/mbrs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c
index c889eec..82b45c0 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 0xfa33:
     case 0xfab8:
     case 0xfabe:
 	strlcpy(buffer, "No bootloader", buffer_size - 1);
@@ -97,6 +96,9 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size)
 	else
 	    strlcpy(buffer, "Unknown mbr", buffer_size - 1);
 	break;
+    case 0xfa33:
+	strlcpy(buffer, "MS-DOS 3.30 through Windows 95 (A)", buffer_size - 1);
+	break;
     case 0xfaeb:
 	strlcpy(buffer, "Lilo", buffer_size - 1);
 	break;



More information about the Syslinux-commits mailing list