summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2002-11-27 22:57:06 (GMT)
committerdavygrvy <davygrvy@pobox.com>2002-11-27 22:57:06 (GMT)
commita3ffa1319a78d7f38aacc6fc7d885a2f7d23e0df (patch)
treea58a6394395726d8cd9849e58e056a9d40ab47aa /win/tclWinChan.c
parent3f212f7af44708141173de96925172f3003d49a9 (diff)
downloadtcl-a3ffa1319a78d7f38aacc6fc7d885a2f7d23e0df.zip
tcl-a3ffa1319a78d7f38aacc6fc7d885a2f7d23e0df.tar.gz
tcl-a3ffa1319a78d7f38aacc6fc7d885a2f7d23e0df.tar.bz2
* win/tclWinChan.c (Tcl_MakeFileChannel): return of
DuplicateHandle() incorrectly used [Bug 618852].
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 1a4c4ec..e6b61b3 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinChan.c,v 1.25 2002/11/07 02:13:37 mdejong Exp $
+ * RCS: @(#) $Id: tclWinChan.c,v 1.26 2002/11/27 22:57:18 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -1034,7 +1034,7 @@ Tcl_MakeFileChannel(rawHandle, mode)
GetCurrentProcess(), &dupedHandle, 0, FALSE,
DUPLICATE_SAME_ACCESS);
- if (result != 0) {
+ if (result == 0) {
/*
* Unable to make a duplicate. It's definately invalid at this
* point.