Commit 02daf5d3 authored by Steve Lhomme's avatar Steve Lhomme

d3d9_filters: fix a potential crash (again)

Fixes #19612
parent 3f27e01b
......@@ -107,7 +107,7 @@ static picture_t *Filter(filter_t *p_filter, picture_t *p_pic)
picture_sys_t *p_src_sys = ActivePictureSys(p_pic);
picture_t *p_outpic = filter_NewPicture( p_filter );
if( !p_outpic || !p_outpic->p_sys->surface )
if( !p_outpic || !p_outpic->p_sys || !p_outpic->p_sys->surface )
goto failed;
picture_CopyProperties( p_outpic, p_pic );
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