* 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.
This commit is contained in:
Christopher Faylor
2011-06-07 20:55:10 +00:00
parent 772832a85b
commit 0791c40b20
4 changed files with 20 additions and 8 deletions

View File

@ -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