msvcrt: Ignore inherited FDs with invalid handles in msvcrt_init_io().
commit611742d31fb042d642d5ac30eebf0d73154a3481
authorPaul Gofman <pgofman@codeweavers.com>
Mon, 15 Feb 2021 14:52:16 +0000 (15 17:52 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 15 Feb 2021 20:11:28 +0000 (15 21:11 +0100)
tree263e12fcb942aabd1581cd22629fd8297eeb93b6
parent5007f6fa35db9e6d1f0623bde18d6f56546e31e8
msvcrt: Ignore inherited FDs with invalid handles in msvcrt_init_io().

The process std handles should be preserved in this case.

Fixes error on startup in "Re:ZERO -Starting Life in Another World- The
Prophecy of the Throne" launcher.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/file.c
dlls/msvcrt/tests/file.c