diff --git a/src/win/tty.c b/src/win/tty.c index 7b1e4ba0..78176849 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -106,10 +106,9 @@ int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int readable) { HANDLE handle; CONSOLE_SCREEN_BUFFER_INFO screen_buffer_info; - handle = (HANDLE) _get_osfhandle(fd); - if (handle == INVALID_HANDLE_VALUE) { + handle = (HANDLE) uv__get_osfhandle(fd); + if (handle == INVALID_HANDLE_VALUE) return UV_EBADF; - } if (!readable) { /* Obtain the screen buffer info with the output handle. */