Commit fe5bfa5b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

widl: Add null source pointer check for typelib writer.

parent fdf43b9b
...@@ -2560,7 +2560,8 @@ static void set_lib_flags(msft_typelib_t *typelib) ...@@ -2560,7 +2560,8 @@ static void set_lib_flags(msft_typelib_t *typelib)
static void ctl2_write_segment(msft_typelib_t *typelib, int segment) static void ctl2_write_segment(msft_typelib_t *typelib, int segment)
{ {
put_data(typelib->typelib_segment_data[segment], typelib->typelib_segdir[segment].length); if (typelib->typelib_segment_data[segment])
put_data(typelib->typelib_segment_data[segment], typelib->typelib_segdir[segment].length);
} }
static void ctl2_finalize_typeinfos(msft_typelib_t *typelib, int filesize) static void ctl2_finalize_typeinfos(msft_typelib_t *typelib, int filesize)
......
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