mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:30:15 +00:00
server: Use requested options for device pseudo fd.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2adfa93a7f
commit
f003ac5e62
|
@ -3578,7 +3578,7 @@ static void test_file_mode(void)
|
|||
{ &mailslot_dev_name, 0, 0 },
|
||||
{ &mailslot_dev_name, FILE_SYNCHRONOUS_IO_ALERT, FILE_SYNCHRONOUS_IO_ALERT, TRUE },
|
||||
{ &mountmgr_dev_name, 0, 0 },
|
||||
{ &mountmgr_dev_name, FILE_SYNCHRONOUS_IO_ALERT, FILE_SYNCHRONOUS_IO_ALERT, TRUE }
|
||||
{ &mountmgr_dev_name, FILE_SYNCHRONOUS_IO_ALERT, FILE_SYNCHRONOUS_IO_ALERT }
|
||||
};
|
||||
|
||||
static WCHAR pipe_devW[] = {'\\','?','?','\\','P','I','P','E','\\'};
|
||||
|
|
|
@ -358,7 +358,7 @@ static struct object *device_open_file( struct object *obj, unsigned int access,
|
|||
&mode, access, sharing, options );
|
||||
if (file->fd) set_fd_user( file->fd, &device_file_fd_ops, &file->obj );
|
||||
}
|
||||
else file->fd = alloc_pseudo_fd( &device_file_fd_ops, &file->obj, 0 );
|
||||
else file->fd = alloc_pseudo_fd( &device_file_fd_ops, &file->obj, options );
|
||||
|
||||
if (!file->fd)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue