2009-08-04 21:52:16 +02:00
|
|
|
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
|
2008-11-07 15:54:35 +01:00
|
|
|
|
|
|
|
pScrn = xf86Screens[scrnIndex];
|
|
|
|
pVidMode = VMPTR(pScrn->pScreen);
|
|
|
|
+ if (!pScrn->modes)
|
|
|
|
+ return FALSE;
|
|
|
|
pVidMode->First = pScrn->modes;
|
|
|
|
pVidMode->Next = pVidMode->First->next;
|
|
|
|
|