aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32/Process.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Win32/Process.inc')
-rw-r--r--lib/System/Win32/Process.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/Win32/Process.inc b/lib/System/Win32/Process.inc
index feb0806..15b41f0 100644
--- a/lib/System/Win32/Process.inc
+++ b/lib/System/Win32/Process.inc
@@ -132,7 +132,8 @@ bool Process::StandardErrIsDisplayed() {
}
bool Process::FileDescriptorIsDisplayed(int fd) {
- return GetFileType((HANDLE)_get_osfhandle(fd)) == FILE_TYPE_CHAR;
+ DWORD Mode; // Unused
+ return (GetConsoleMode((HANDLE)_get_osfhandle(fd), &Mode) != 0);
}
unsigned Process::StandardOutColumns() {