Commit 13b2587d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Remove no longer needed support for opening current console in open_console request.

parent be2443e0
......@@ -1902,7 +1902,6 @@ struct open_console_request
{
struct request_header __header;
obj_handle_t from;
unsigned int access;
unsigned int attributes;
int share;
......
......@@ -1664,19 +1664,8 @@ DECL_HANDLER(open_console)
{
struct object *obj = NULL;
reply->handle = 0;
if (!req->from)
{
if (current->process->console)
obj = grab_object( (struct object*)current->process->console );
}
else if (req->from == (obj_handle_t)1)
{
if (current->process->console && current->process->console->active)
obj = grab_object( (struct object*)current->process->console->active );
}
else if ((obj = get_handle_obj( current->process, req->from,
FILE_READ_PROPERTIES|FILE_WRITE_PROPERTIES, &console_input_ops )))
if ((obj = get_handle_obj( current->process, req->from,
FILE_READ_PROPERTIES|FILE_WRITE_PROPERTIES, &console_input_ops )))
{
struct console_input *console = (struct console_input *)obj;
obj = (console->active) ? grab_object( console->active ) : NULL;
......
......@@ -1523,8 +1523,7 @@ struct console_renderer_event
/* Open a handle to the process console */
@REQ(open_console)
obj_handle_t from; /* 0 (resp 1) input (resp output) of current process console */
/* otherwise console_in handle to get active screen buffer? */
obj_handle_t from; /* console_in handle to get active screen buffer */
unsigned int access; /* wanted access rights */
unsigned int attributes; /* object attributes */
int share; /* share mask (only for output handles) */
......
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