server: Remove no longer needed support for opening current console in open_console request.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
be2443e0c5
commit
13b2587d4f
|
@ -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) */
|
||||
|
|
Loading…
Reference in New Issue