Fixed a potential crash if a usable video mode is not detected.

This commit is contained in:
Stephen Crowley 1998-12-10 09:50:35 +00:00 committed by Alexandre Julliard
parent 77977234ab
commit 330612ea5c
1 changed files with 1 additions and 1 deletions

View File

@ -1995,7 +1995,7 @@ static HRESULT WINAPI DGA_IDirectDraw_SetDisplayMode(
#ifdef HAVE_LIBXXF86VM
{
XF86VidModeModeInfo **all_modes, *vidmode;
XF86VidModeModeInfo **all_modes, *vidmode = NULL;
/* set fullscreen mode */
/* do we need to save the old video mode and restore it when we exit? */