[PATCH 1/2] server: Use GENERIC_READ | GENERIC_WRITE in inherit_console().
Zebediah Figura
z.figura12 at gmail.com
Tue Sep 8 17:49:12 CDT 2020
The inherited console must have at least FILE_READ_DATA | FILE_WRITE_DATA. This also matches the access rights in AllocConsole().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
server/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/console.c b/server/console.c
index 3ea8a0fe531..6a4a0b60d5f 100644
--- a/server/console.c
+++ b/server/console.c
@@ -784,7 +784,7 @@ obj_handle_t inherit_console( struct thread *parent_thread, obj_handle_t handle,
process->console = console;
console->num_proc++;
return alloc_handle( process, process->console,
- SYNCHRONIZE | FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES, 0 );
+ SYNCHRONIZE | GENERIC_READ | GENERIC_WRITE, 0 );
}
struct thread *console_get_renderer( struct console_input *console )
--
2.28.0
More information about the wine-devel
mailing list