[io-layer] Extract file (#4255)
[mono.git] / mono / metadata / console-null.c
index b8367e888f7b851970cb4f7a2668558db116b90c..233e2aef04e734058d89cc489fefd13fd135d998 100644 (file)
@@ -30,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