1
0
xorg-x11-server/vidmode-sig11.diff

14 lines
415 B
Diff
Raw Normal View History

Index: hw/xfree86/common/xf86VidMode.c
================================================================================
--- hw/xfree86/common/xf86VidMode.c
+++ hw/xfree86/common/xf86VidMode.c
@@ -220,6 +220,8 @@
pScrn = xf86Screens[scrnIndex];
pVidMode = VMPTR(pScrn->pScreen);
+ if (!pScrn->modes)
+ return FALSE;
pVidMode->First = pScrn->modes;
pVidMode->Next = pVidMode->First->next;