Eric Pouech : kernel32: Remove old bare-console code.

Alexandre Julliard julliard at winehq.org
Wed Sep 1 11:08:55 CDT 2010


Module: wine
Branch: master
Commit: a63e0fac751fcd7f4f8b15ea1feb8268b68e9b10
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a63e0fac751fcd7f4f8b15ea1feb8268b68e9b10

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Mon Aug 30 22:19:39 2010 +0200

kernel32: Remove old bare-console code.

---

 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 cd2de5d..9ac7018 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;
 }
 
@@ -1417,8 +1404,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-cvs mailing list