Chameleon

View modules.patch.txt

1diff --git a/i386/boot2/modules.c b/i386/boot2/modules.c
2--- a/i386/boot2/modules.c
3+++ b/i386/boot2/modules.c
4@@ -93,7 +93,7 @@ int init_module_system()
5 }
6
7 // Look for modules located in the multiboot header.
8-if(gMI->mi_flags & MULTIBOOT_INFO_HAS_MODS)
9+if(gMI && (gMI->mi_flags & MULTIBOOT_INFO_HAS_MODS))
10 {
11 if(gMI->mi_mods_count)
12 {
13

Archive Download this file

Attachment to issue 388

Created: 9 years 3 months ago by zenith432