1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-05 17:28:47 +00:00

server: Fixed refcounting in get_fd requests for named pipe and mailslot devices.

This commit is contained in:
Alexandre Julliard 2005-12-13 11:22:28 +01:00
parent 435e36e366
commit 5bcd0888ef
2 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ static void mailslot_device_dump( struct object *obj, int verbose )
static struct fd *mailslot_device_get_fd( struct object *obj )
{
struct mailslot_device *device = (struct mailslot_device *)obj;
return device->fd;
return (struct fd *)grab_object( device->fd );
}
static struct object *mailslot_device_lookup_name( struct object *obj, struct unicode_str *name,

View File

@ -411,7 +411,7 @@ static void named_pipe_device_dump( struct object *obj, int verbose )
static struct fd *named_pipe_device_get_fd( struct object *obj )
{
struct named_pipe_device *device = (struct named_pipe_device *)obj;
return device->fd;
return (struct fd *)grab_object( device->fd );
}
static struct object *named_pipe_device_lookup_name( struct object *obj, struct unicode_str *name,