diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index 076d6bf72f0..e84324c6bec 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -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','\\'}; diff --git a/server/device.c b/server/device.c index 081fd2d667f..ac7d88f8c29 100644 --- a/server/device.c +++ b/server/device.c @@ -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) {