diff options
Diffstat (limited to 'otherlibs/win32unix/dup2.c')
-rw-r--r-- | otherlibs/win32unix/dup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/win32unix/dup2.c b/otherlibs/win32unix/dup2.c index a7eb8ee91..d14083c0b 100644 --- a/otherlibs/win32unix/dup2.c +++ b/otherlibs/win32unix/dup2.c @@ -21,7 +21,7 @@ value unix_dup2(value fd1, value fd2) /* ML */ oldh = Handle_val(fd2); if (! DuplicateHandle(GetCurrentProcess(), Handle_val(fd1), GetCurrentProcess(), &newh, - 0L, inherit, DUPLICATE_SAME_ACCESS)) { + 0L, TRUE, DUPLICATE_SAME_ACCESS)) { _dosmaperr(GetLastError()); return -1; } |