Commit e432d54f authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed potential crash in fd_dump function.

parent c6ec3a32
...@@ -1068,8 +1068,9 @@ void async_terminate( struct async *async, int status ) ...@@ -1068,8 +1068,9 @@ void async_terminate( struct async *async, int status )
static void fd_dump( struct object *obj, int verbose ) static void fd_dump( struct object *obj, int verbose )
{ {
struct fd *fd = (struct fd *)obj; struct fd *fd = (struct fd *)obj;
fprintf( stderr, "Fd unix_fd=%d user=%p unlink='%s'\n", fprintf( stderr, "Fd unix_fd=%d user=%p", fd->unix_fd, fd->user );
fd->unix_fd, fd->user, fd->closed->unlink ); if (fd->inode) fprintf( stderr, " inode=%p unlink='%s'", fd->inode, fd->closed->unlink );
fprintf( stderr, "\n" );
} }
static void fd_destroy( struct object *obj ) static void fd_destroy( struct object *obj )
......
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