|
@@ -1000,9 +1000,16 @@ static bool vga_interface_available(VGAInterfaceType t)
|
|
const VGAInterfaceInfo *ti = &vga_interfaces[t];
|
|
const VGAInterfaceInfo *ti = &vga_interfaces[t];
|
|
|
|
|
|
assert(t < VGA_TYPE_MAX);
|
|
assert(t < VGA_TYPE_MAX);
|
|
- return !ti->class_names[0] ||
|
|
|
|
- module_object_class_by_name(ti->class_names[0]) ||
|
|
|
|
- module_object_class_by_name(ti->class_names[1]);
|
|
|
|
|
|
+
|
|
|
|
+ if (!ti->class_names[0] || module_object_class_by_name(ti->class_names[0])) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (ti->class_names[1] && module_object_class_by_name(ti->class_names[1])) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
|
|
|
|
static const char *
|
|
static const char *
|