Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3217abd7
Commit
3217abd7
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: Allow creating unbound console connection objects.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74192f7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
console.c
server/console.c
+12
-2
No files found.
server/console.c
View file @
3217abd7
...
@@ -1330,8 +1330,11 @@ static struct object *create_console_connection( struct console_input *console )
...
@@ -1330,8 +1330,11 @@ static struct object *create_console_connection( struct console_input *console )
if
(
!
(
connection
=
alloc_object
(
&
console_connection_ops
)))
return
NULL
;
if
(
!
(
connection
=
alloc_object
(
&
console_connection_ops
)))
return
NULL
;
current
->
process
->
console
=
(
struct
console_input
*
)
grab_object
(
console
);
if
(
console
)
console
->
num_proc
++
;
{
current
->
process
->
console
=
(
struct
console_input
*
)
grab_object
(
console
);
console
->
num_proc
++
;
}
return
&
connection
->
obj
;
return
&
connection
->
obj
;
}
}
...
@@ -2305,6 +2308,7 @@ static void console_device_dump( struct object *obj, int verbose )
...
@@ -2305,6 +2308,7 @@ 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
connectionW
[]
=
{
'C'
,
'o'
,
'n'
,
'n'
,
'e'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
};
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'
};
static
const
WCHAR
current_inW
[]
=
{
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'I'
,
'n'
};
static
const
WCHAR
current_outW
[]
=
{
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'O'
,
'u'
,
't'
};
static
const
WCHAR
current_outW
[]
=
{
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'O'
,
'u'
,
't'
};
...
@@ -2363,6 +2367,12 @@ static struct object *console_device_lookup_name( struct object *obj, struct uni
...
@@ -2363,6 +2367,12 @@ static struct object *console_device_lookup_name( struct object *obj, struct uni
return
create_console_server
();
return
create_console_server
();
}
}
if
(
name
->
len
==
sizeof
(
connectionW
)
&&
!
memcmp
(
name
->
str
,
connectionW
,
name
->
len
))
{
name
->
len
=
0
;
return
create_console_connection
(
NULL
);
}
return
NULL
;
return
NULL
;
}
}
...
...
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