windows: return UV_FILE for non-console FILE_TYPE_CHAR

This commit is contained in:
Igor Zinkovsky 2011-11-17 15:18:32 -08:00
parent 2007eb813d
commit 08a5546753

View File

@ -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: