Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bededecc
Commit
bededecc
authored
Jun 25, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Support ConDrv/CurrentIn device.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6898bdca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
console.c
server/console.c
+21
-1
No files found.
server/console.c
View file @
bededecc
...
@@ -75,6 +75,8 @@ struct console_input
...
@@ -75,6 +75,8 @@ struct console_input
static
void
console_input_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
console_input_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
console_input_destroy
(
struct
object
*
obj
);
static
void
console_input_destroy
(
struct
object
*
obj
);
static
struct
fd
*
console_input_get_fd
(
struct
object
*
obj
);
static
struct
fd
*
console_input_get_fd
(
struct
object
*
obj
);
static
struct
object
*
console_input_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
);
static
const
struct
object_ops
console_input_ops
=
static
const
struct
object_ops
console_input_ops
=
{
{
...
@@ -93,7 +95,7 @@ static const struct object_ops console_input_ops =
...
@@ -93,7 +95,7 @@ static const struct object_ops console_input_ops =
no_lookup_name
,
/* lookup_name */
no_lookup_name
,
/* lookup_name */
no_link_name
,
/* link_name */
no_link_name
,
/* link_name */
NULL
,
/* unlink_name */
NULL
,
/* unlink_name */
no_open_file
,
/* open_file */
console_input_open_file
,
/* open_file */
no_kernel_obj_list
,
/* get_kernel_obj_list */
no_kernel_obj_list
,
/* get_kernel_obj_list */
no_close_handle
,
/* close_handle */
no_close_handle
,
/* close_handle */
console_input_destroy
/* destroy */
console_input_destroy
/* destroy */
...
@@ -1204,6 +1206,12 @@ static void console_input_destroy( struct object *obj )
...
@@ -1204,6 +1206,12 @@ static void console_input_destroy( struct object *obj )
free
(
console_in
->
history
);
free
(
console_in
->
history
);
}
}
static
struct
object
*
console_input_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
)
{
return
grab_object
(
obj
);
}
static
void
screen_buffer_dump
(
struct
object
*
obj
,
int
verbose
)
static
void
screen_buffer_dump
(
struct
object
*
obj
,
int
verbose
)
{
{
struct
screen_buffer
*
screen_buffer
=
(
struct
screen_buffer
*
)
obj
;
struct
screen_buffer
*
screen_buffer
=
(
struct
screen_buffer
*
)
obj
;
...
@@ -1484,6 +1492,18 @@ static void console_device_dump( struct object *obj, int verbose )
...
@@ -1484,6 +1492,18 @@ static void console_device_dump( struct object *obj, int verbose )
static
struct
object
*
console_device_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
)
static
struct
object
*
console_device_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
)
{
{
static
const
WCHAR
consoleW
[]
=
{
'C'
,
'o'
,
'n'
,
's'
,
'o'
,
'l'
,
'e'
};
static
const
WCHAR
consoleW
[]
=
{
'C'
,
'o'
,
'n'
,
's'
,
'o'
,
'l'
,
'e'
};
static
const
WCHAR
current_inW
[]
=
{
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'I'
,
'n'
};
if
(
name
->
len
==
sizeof
(
current_inW
)
&&
!
memcmp
(
name
->
str
,
current_inW
,
name
->
len
))
{
if
(
!
current
->
process
->
console
)
{
set_error
(
STATUS_INVALID_HANDLE
);
return
NULL
;
}
name
->
len
=
0
;
return
grab_object
(
current
->
process
->
console
);
}
if
(
name
->
len
==
sizeof
(
consoleW
)
&&
!
memcmp
(
name
->
str
,
consoleW
,
name
->
len
))
if
(
name
->
len
==
sizeof
(
consoleW
)
&&
!
memcmp
(
name
->
str
,
consoleW
,
name
->
len
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment