forked from pool/xorg-x11-server
14 lines
448 B
Diff
14 lines
448 B
Diff
Index: hw/xfree86/common/xf86VidMode.c
|
|
===================================================================
|
|
--- hw/xfree86/common/xf86VidMode.c.orig
|
|
+++ hw/xfree86/common/xf86VidMode.c
|
|
@@ -226,6 +226,8 @@ VidModeGetFirstModeline(int scrnIndex, p
|
|
|
|
pScrn = xf86Screens[scrnIndex];
|
|
pVidMode = VMPTR(pScrn->pScreen);
|
|
+ if (!pScrn->modes)
|
|
+ return FALSE;
|
|
pVidMode->First = pScrn->modes;
|
|
pVidMode->Next = pVidMode->First->next;
|
|
|