Commit 1420d28c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix clearing NOINHERIT flag in _dup2.

parent 42d0d8d9
......@@ -1128,7 +1128,7 @@ int CDECL _dup2(int od, int nd)
if (DuplicateHandle(GetCurrentProcess(), info_od->handle,
GetCurrentProcess(), &handle, 0, TRUE, DUPLICATE_SAME_ACCESS))
{
int wxflag = info_od->wxflag & ~_O_NOINHERIT;
int wxflag = info_od->wxflag & ~WX_DONTINHERIT;
if (info_nd->wxflag & WX_OPEN)
_close(nd);
......
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