projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #952 from ermshiperete/bug-xamarin-2912
[mono.git]
/
mono
/
metadata
/
console-win32.c
diff --git
a/mono/metadata/console-win32.c
b/mono/metadata/console-win32.c
index 6b940f3edfb4e85920a526d0cc56a6fa868e273f..15efa5a30507b51b903a5a20d60c16cbb1aea864 100644
(file)
--- a/
mono/metadata/console-win32.c
+++ b/
mono/metadata/console-win32.c
@@
-44,9
+44,11
@@
mono_console_handle_async_ops (void)
MonoBoolean
ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
{
MonoBoolean
ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
{
+ DWORD mode;
+
MONO_ARCH_SAVE_REGS;
MONO_ARCH_SAVE_REGS;
- return
(GetFileType (handle) == FILE_TYPE_CHAR)
;
+ return
GetConsoleMode (handle, &mode) != 0
;
}
MonoBoolean
}
MonoBoolean