Commit 7f043168 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

kernel32: Fixed regression with echoing input characters.

parent 934d6761
...@@ -156,7 +156,8 @@ static int get_console_bare_fd(HANDLE hin) ...@@ -156,7 +156,8 @@ static int get_console_bare_fd(HANDLE hin)
{ {
int fd; int fd;
if (wine_server_handle_to_fd(hin, 0, &fd, NULL) == STATUS_SUCCESS) if (wine_server_handle_to_fd(wine_server_ptr_handle(console_handle_unmap(hin)),
0, &fd, NULL) == STATUS_SUCCESS)
return fd; return fd;
return -1; return -1;
} }
...@@ -1587,7 +1588,7 @@ BOOL WINAPI ReadConsoleW(HANDLE hConsoleInput, LPVOID lpBuffer, ...@@ -1587,7 +1588,7 @@ BOOL WINAPI ReadConsoleW(HANDLE hConsoleInput, LPVOID lpBuffer,
if (!GetConsoleMode(hConsoleInput, &mode)) if (!GetConsoleMode(hConsoleInput, &mode))
return FALSE; return FALSE;
if ((fd == get_console_bare_fd(hConsoleInput)) == -1) if ((fd = get_console_bare_fd(hConsoleInput)) != -1)
{ {
close(fd); close(fd);
is_bare = TRUE; is_bare = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment