From: RĂ©mi Denis-Courmont Date: Sun, 1 Feb 2009 07:09:22 +0000 (+0200) Subject: Win32: fix NULL-deref in non embedded video mode (fixes #2426) X-Git-Tag: 1.0.0-pre1~936 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=09af489c23a225c76820aa44cf39759dd86efd22;p=vlc Win32: fix NULL-deref in non embedded video mode (fixes #2426) --- diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index 221e4dd06a..119680c6f7 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -422,7 +422,8 @@ static int DirectXCreateWindow( vout_thread_t *p_vout ) &p_vout->p_sys->i_window_y, &p_vout->p_sys->i_window_width, &p_vout->p_sys->i_window_height ); - p_vout->p_sys->hparent = p_vout->p_sys->parent_window->handle.hwnd; + if( p_vout->p_sys->parent_window ) + p_vout->p_sys->hparent = p_vout->p_sys->parent_window->handle.hwnd; /* We create the window ourself, there is no previous window proc. */ p_vout->p_sys->pf_wndproc = NULL;