summaryrefslogtreecommitdiff
path: root/libraries/base/cbits/IOutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/cbits/IOutils.c')
-rw-r--r--libraries/base/cbits/IOutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/cbits/IOutils.c b/libraries/base/cbits/IOutils.c
index 8d3ae35588..b5098d6540 100644
--- a/libraries/base/cbits/IOutils.c
+++ b/libraries/base/cbits/IOutils.c
@@ -209,8 +209,8 @@ __is_console(HANDLE hFile)
DWORD handleType = GetFileType (hFile);
/* TTY must be a character device */
- if (handleType == FILE_TYPE_CHAR)
- return true;
+ if (handleType != FILE_TYPE_CHAR)
+ return false;
DWORD st;
/* GetConsoleMode appears to fail when it's not a TTY. In