Commit 3b5991cd authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent cde46665
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment