Zebediah Figura : server: Use GENERIC_READ | GENERIC_WRITE in inherit_console().
Alexandre Julliard
julliard at winehq.org
Wed Sep 9 15:42:29 CDT 2020
Module: wine
Branch: master
Commit: c4ae13e31264616757200cd97700724ffe37e602
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c4ae13e31264616757200cd97700724ffe37e602
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Sep 8 17:49:12 2020 -0500
server: Use GENERIC_READ | GENERIC_WRITE in inherit_console().
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>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/console.c b/server/console.c
index 3ea8a0fe53..6a4a0b60d5 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 )
More information about the wine-cvs
mailing list