2 Oct
2025
2 Oct
'25
11:37 p.m.
Brendan Shanks (@bshanks) commented about dlls/winemac.drv/cocoa_display.m:
+ edid[28] = 0x54; + edid[29] = 0x4c; + edid[30] = 0x99; + edid[31] = 0x26; + edid[32] = 0x0f; + edid[33] = 0x50; + edid[34] = 0x54; + + for (i = 0; i < 16; ++i) edid[38 + i] = 1; + + /* detailed timing descriptors */ + p = edid + 54; + modes = CGDisplayCopyAllDisplayModes(display->displayID, NULL); + if (modes) + i = CFArrayGetCount(modes); + for (i--; i >= 0; i--) `i` would be uninitialized here if `modes` is NULL
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8925#note_117489