From 09af489c23a225c76820aa44cf39759dd86efd22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 1 Feb 2009 09:09:22 +0200 Subject: [PATCH] Win32: fix NULL-deref in non embedded video mode (fixes #2426) --- modules/video_output/msw/events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5