[PATCH 9/9] [Kernel32]: remove old bare-console code
Eric Pouech
eric.pouech at orange.fr
Mon Aug 30 15:19:39 CDT 2010
A+
---
dlls/kernel32/console.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index f6bbbe3..03d88ba 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -332,20 +332,7 @@ HANDLE WINAPI OpenConsoleW(LPCWSTR name, DWORD access, BOOL inherit, DWORD creat
SERVER_END_REQ;
if (ret)
ret = console_handle_map(ret);
- else
- {
- /* likely, we're not attached to wineconsole
- * let's try to return a handle to the unix-console
- */
- int fd = open("/dev/tty", output ? O_WRONLY : O_RDONLY);
- ret = INVALID_HANDLE_VALUE;
- if (fd != -1)
- {
- DWORD access = (output ? GENERIC_WRITE : GENERIC_READ) | SYNCHRONIZE;
- wine_server_fd_to_handle(fd, access, inherit ? OBJ_INHERIT : 0, &ret);
- close(fd);
- }
- }
+
return ret;
}
@@ -1422,8 +1409,6 @@ BOOL WINAPI AllocConsole(void)
CloseHandle(handle_in);
return FALSE;
}
- /* happens when we're running on a Unix console */
- if (handle_in != INVALID_HANDLE_VALUE) CloseHandle(handle_in);
/* invalidate local copy of input event handle */
console_wait_event = 0;
More information about the wine-patches
mailing list