diff options
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r-- | win/tclWinChan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c index 9b018e4..6ce0735 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -1106,7 +1106,7 @@ TclpOpenFileChannel( return NULL; } - switch (mode & (O_RDONLY | O_WRONLY | O_RDWR)) { + switch (mode & O_ACCMODE) { case O_RDONLY: accessMode = GENERIC_READ; channelPermissions = TCL_READABLE; |