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

This commit is contained in:
Piotr Caban 2015-06-12 14:33:41 +02:00 committed by Alexandre Julliard
parent cde46665fa
commit 3b5991cd80
1 changed files with 2 additions and 1 deletions

View File

@ -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);