mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[VIDEOPRT] Workaround bug CORE-16695 (infinite loop when reading EDID on LiveCD in QEMU)
For some reason, we don't get valid EDIDs when using LiveCD on QEMU. We ignore them, and try to read the one of the next child. This leads to a infinite loop and then, an out of memory error. As it can also happen in other circonstances, stop enumeration as soon as an invalid EDID is detected. This breaks configurations with graphic cards with 2+ outputs, where the first one is not plugged to a monitor, and the second one is plugged to a monitor. CORE-16695
This commit is contained in:
parent
a05051f554
commit
340d9360c3
1 changed files with 4 additions and 0 deletions
|
@ -1225,6 +1225,10 @@ VideoPortEnumerateChildren(
|
|||
{
|
||||
/* Mark it invalid */
|
||||
ChildExtension->EdidValid = FALSE;
|
||||
// FIXME: the following break workarounds CORE-16695
|
||||
// but prevents graphic cards to return an invalid
|
||||
// EDID as first child, and a valid one as second child.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue