windows: return UV_FILE for non-console FILE_TYPE_CHAR
This commit is contained in:
parent
2007eb813d
commit
08a5546753
@ -35,7 +35,7 @@ uv_handle_type uv_guess_handle(uv_file file) {
|
||||
if (GetConsoleMode(handle, &mode)) {
|
||||
return UV_TTY;
|
||||
} else {
|
||||
return UV_UNKNOWN_HANDLE;
|
||||
return UV_FILE;
|
||||
}
|
||||
|
||||
case FILE_TYPE_PIPE:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user