From 08a55467534b1181bb90e669c87f9ff124cd09ab Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Thu, 17 Nov 2011 15:18:32 -0800 Subject: [PATCH] windows: return UV_FILE for non-console FILE_TYPE_CHAR --- src/win/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/handle.c b/src/win/handle.c index b67139cb..ba0af755 100644 --- a/src/win/handle.c +++ b/src/win/handle.c @@ -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: