2009-08-04 21:52:16 +02:00
|
|
|
Index: hw/xfree86/common/xf86VidMode.c
|
2012-04-20 11:32:05 +02:00
|
|
|
===================================================================
|
|
|
|
--- hw/xfree86/common/xf86VidMode.c.orig
|
2009-08-04 21:52:16 +02:00
|
|
|
+++ hw/xfree86/common/xf86VidMode.c
|
2012-04-20 11:32:05 +02:00
|
|
|
@@ -224,6 +224,8 @@ VidModeGetFirstModeline(int scrnIndex, p
|
|
|
|
return FALSE;
|
2008-11-07 15:54:35 +01:00
|
|
|
|
|
|
|
pVidMode = VMPTR(pScrn->pScreen);
|
|
|
|
+ if (!pScrn->modes)
|
|
|
|
+ return FALSE;
|
|
|
|
pVidMode->First = pScrn->modes;
|
2012-04-20 11:32:05 +02:00
|
|
|
pVidMode->Next = pVidMode->First->next;
|
2008-11-07 15:54:35 +01:00
|
|
|
|