Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
d6565b08
Commit
d6565b08
authored
Sep 16, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Support creating console reference from console connection object.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3e115d24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
console.c
server/console.c
+20
-1
No files found.
server/console.c
View file @
d6565b08
...
...
@@ -367,6 +367,7 @@ struct console_connection
static
void
console_connection_dump
(
struct
object
*
obj
,
int
verbose
);
static
struct
fd
*
console_connection_get_fd
(
struct
object
*
obj
);
static
struct
object
*
console_connection_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
);
static
struct
object
*
console_connection_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
);
static
int
console_connection_close_handle
(
struct
object
*
obj
,
struct
process
*
process
,
obj_handle_t
handle
);
...
...
@@ -386,7 +387,7 @@ static const struct object_ops console_connection_ops =
no_map_access
,
/* map_access */
default_get_sd
,
/* get_sd */
default_set_sd
,
/* set_sd */
no_lookup_name
,
/* lookup_name */
console_connection_lookup_name
,
/* lookup_name */
directory_link_name
,
/* link_name */
default_unlink_name
,
/* unlink_name */
console_connection_open_file
,
/* open_file */
...
...
@@ -2353,6 +2354,24 @@ static struct fd *console_connection_get_fd( struct object *obj )
return
(
struct
fd
*
)
grab_object
(
connection
->
fd
);
}
static
struct
object
*
console_connection_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
)
{
static
const
WCHAR
referenceW
[]
=
{
'R'
,
'e'
,
'f'
,
'e'
,
'r'
,
'e'
,
'n'
,
'c'
,
'e'
};
if
(
name
->
len
==
sizeof
(
referenceW
)
&&
!
memcmp
(
name
->
str
,
referenceW
,
name
->
len
))
{
if
(
!
current
->
process
->
console
)
{
set_error
(
STATUS_INVALID_HANDLE
);
return
NULL
;
}
name
->
len
=
0
;
return
grab_object
(
current
->
process
->
console
);
}
return
NULL
;
}
static
struct
object
*
console_connection_open_file
(
struct
object
*
obj
,
unsigned
int
access
,
unsigned
int
sharing
,
unsigned
int
options
)
{
...
...
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