Commit 74dc9aa3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Avoid a potential NULL dereference in startup_info_dump().

info->data may be set to NULL by get_startup_info, without invalidating the object itself. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4ee4fffa
...@@ -749,8 +749,11 @@ static void startup_info_dump( struct object *obj, int verbose ) ...@@ -749,8 +749,11 @@ static void startup_info_dump( struct object *obj, int verbose )
struct startup_info *info = (struct startup_info *)obj; struct startup_info *info = (struct startup_info *)obj;
assert( obj->ops == &startup_info_ops ); assert( obj->ops == &startup_info_ops );
fprintf( stderr, "Startup info in=%04x out=%04x err=%04x\n", fputs( "Startup info", stderr );
if (info->data)
fprintf( stderr, " in=%04x out=%04x err=%04x",
info->data->hstdin, info->data->hstdout, info->data->hstderr ); info->data->hstdin, info->data->hstdout, info->data->hstderr );
fputc( '\n', stderr );
} }
static int startup_info_signaled( struct object *obj, struct wait_queue_entry *entry ) static int startup_info_signaled( struct object *obj, struct wait_queue_entry *entry )
......
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