diff options
author | Christopher Faylor <me@cgf.cx> | 2011-06-08 00:55:10 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-06-08 00:55:10 +0400 |
commit | 0791c40b209d5622b300320e11f2bf2af8b2b775 (patch) | |
tree | aa71d49f619087ca54b1452c6747478ff6fb32f3 /winsup/cygwin/fhandler_console.cc | |
parent | 772832a85b7e03acf341d53ec55003c9564bc16e (diff) |
* fhandler_console.cc (fhandler_console::open_shared_console): Semi-revert to
using fixed location for console stuff.
* shared.cc (offsets): Ditto. Comment.
* shared_info (shared_locations): Re-add SH_SHARED_CONSOLE.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 83ce24652..4d37c0d06 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -83,10 +83,10 @@ fhandler_console::open_shared_console (HWND hw, HANDLE& h, bool& create) wchar_t namebuf[(sizeof "XXXXXXXXXXXXXXXXXX-consNNNNNNNNNN")]; __small_swprintf (namebuf, L"%S-cons%p", &installation_key, hw); - shared_locations m = create ? SH_JUSTCREATE: SH_JUSTOPEN; + shared_locations m = create ? SH_SHARED_CONSOLE : SH_JUSTOPEN; console_state *res = (console_state *) open_shared (namebuf, 0, h, sizeof (*shared_console_info), &m); - create = m == SH_JUSTCREATE; + create = m != SH_JUSTOPEN; return res; } class console_unit |