Piotr Caban : msvcrt: Open console input handle with write permission so SetConsoleMode can work on it.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 15 08:49:07 CDT 2015


Module: wine
Branch: master
Commit: 3b5991cd80163edd0f8ca1a9a9ef18b60f10c1dc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3b5991cd80163edd0f8ca1a9a9ef18b60f10c1dc

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Jun 12 14:33:41 2015 +0200

msvcrt: Open console input handle with write permission so SetConsoleMode can work on it.

---

 dlls/msvcrt/console.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/msvcrt/console.c b/dlls/msvcrt/console.c
index 0acaa03..3da7fb8 100644
--- a/dlls/msvcrt/console.c
+++ b/dlls/msvcrt/console.c
@@ -44,7 +44,8 @@ void msvcrt_init_console(void)
 {
   TRACE(":Opening console handles\n");
 
-  MSVCRT_console_in = CreateFileA("CONIN$", GENERIC_READ, FILE_SHARE_READ,
+  MSVCRT_console_in = CreateFileA("CONIN$", GENERIC_WRITE|GENERIC_READ,
+                                  FILE_SHARE_WRITE|FILE_SHARE_READ,
                                   NULL, OPEN_EXISTING, 0, NULL);
   MSVCRT_console_out= CreateFileA("CONOUT$", GENERIC_WRITE, FILE_SHARE_WRITE,
 				    NULL, OPEN_EXISTING, 0, NULL);




More information about the wine-cvs mailing list