Commit b5408ff5 authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Don't set invalid std handles with kernel32.

parent 18883a76
......@@ -417,6 +417,7 @@ static void msvcrt_set_fd(ioinfo *fdinfo, HANDLE hand, int flag)
fdinfo->lookahead[2] = '\n';
fdinfo->exflag &= EF_CRIT_INIT;
if (hand == MSVCRT_NO_CONSOLE) hand = 0;
switch (fdinfo-MSVCRT___pioinfo[0])
{
case 0: SetStdHandle(STD_INPUT_HANDLE, hand); break;
......
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