[io-layer] Extract file (#4255)
[mono.git] / mono / metadata / console-null.c
index 7c778bfacd14e66a927884e720d07a7d9bcd315f..233e2aef04e734058d89cc489fefd13fd135d998 100644 (file)
@@ -5,6 +5,7 @@
  *     Gonzalo Paniagua Javier (gonzalo@ximian.com)
  *
  * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 
 #include <mono/metadata/appdomain.h>
@@ -29,7 +30,7 @@ mono_console_handle_async_ops (void)
 MonoBoolean
 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
 {
-       return (GetFileType (handle) == FILE_TYPE_CHAR);
+       return mono_w32file_get_type (handle) == FILE_TYPE_CHAR;
 }
 
 MonoBoolean