Commit 09af489c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix NULL-deref in non embedded video mode (fixes #2426)

parent 8e0a2de2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment