[vlc-devel] commit: Win32: fix NULL-deref in non embedded video mode (fixes #2426) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Feb 1 08:10:08 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Feb 1 09:09:22 2009 +0200| [09af489c23a225c76820aa44cf39759dd86efd22] | committer: Rémi Denis-Courmont
Win32: fix NULL-deref in non embedded video mode (fixes #2426)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09af489c23a225c76820aa44cf39759dd86efd22
---
modules/video_output/msw/events.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 221e4dd..119680c 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;
More information about the vlc-devel
mailing list