* Don't crash if initialModes is NULL, but the count is not.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42440 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -477,6 +477,7 @@ create_display_modes(const char* name, edid1_info* edid,
|
|||||||
// compile initial mode list from the different sources
|
// compile initial mode list from the different sources
|
||||||
|
|
||||||
ModeList modes;
|
ModeList modes;
|
||||||
|
if (initialModes != NULL)
|
||||||
modes.AddModes(initialModes, initialModeCount);
|
modes.AddModes(initialModes, initialModeCount);
|
||||||
|
|
||||||
if (edid != NULL)
|
if (edid != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user