From 187f7a4a4f4bf8110910c35bd27dfb64a8083dd9 Mon Sep 17 00:00:00 2001 From: Saulius Krasuckas Date: Mon, 22 Aug 2005 09:22:19 +0000 Subject: [PATCH] Don't dereference a NULL visual pointer. --- dlls/x11drv/opengl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/x11drv/opengl.c b/dlls/x11drv/opengl.c index a64861e305e..20a90ec630c 100644 --- a/dlls/x11drv/opengl.c +++ b/dlls/x11drv/opengl.c @@ -492,6 +492,7 @@ XVisualInfo *X11DRV_setup_opengl_visual( Display *display ) if (visual == NULL) { /* This should only happen if we cannot find a match with a depth size 16 */ FIXME("Failed to find a suitable visual\n"); + return visual; } } TRACE("Visual ID %lx Chosen\n",visual->visualid);