* loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report

unsupported video mode types.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-04-05 16:06:16 +02:00
parent 2622c3ffb0
commit 974ac4f755
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
* loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
unsupported video mode types.
2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
* kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).

View File

@ -170,6 +170,11 @@ grub_multiboot_load (grub_file_t file)
header->width, header->height,
header->depth, 0);
break;
default:
err = grub_error (GRUB_ERR_BAD_OS,
"unsupported graphical mode type %d",
header->mode_type);
break;
}
}
else