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
04607ca6
Commit
04607ca6
authored
Sep 21, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix console creation logic.
parent
f870cf07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
console.c
server/console.c
+9
-3
No files found.
server/console.c
View file @
04607ca6
...
...
@@ -1386,6 +1386,7 @@ DECL_HANDLER(alloc_console)
struct
thread
*
renderer
;
struct
console_input
*
console
;
int
fd
;
int
attach
=
0
;
switch
(
req
->
pid
)
{
...
...
@@ -1398,12 +1399,14 @@ DECL_HANDLER(alloc_console)
return
;
}
grab_object
(
process
);
attach
=
1
;
break
;
case
0xffffffff
:
/* no renderer, console to be attached to current process */
renderer
=
NULL
;
process
=
current
->
process
;
grab_object
(
process
);
attach
=
1
;
break
;
default
:
/* renderer is current, console to be attached to req->pid */
...
...
@@ -1411,7 +1414,7 @@ DECL_HANDLER(alloc_console)
if
(
!
(
process
=
get_process_from_id
(
req
->
pid
)))
return
;
}
if
(
process
!=
current
->
process
&&
process
->
console
)
if
(
attach
&&
process
->
console
)
{
set_error
(
STATUS_ACCESS_DENIED
);
goto
the_end
;
...
...
@@ -1433,8 +1436,11 @@ DECL_HANDLER(alloc_console)
if
(
!
console
->
evt
||
(
evt
=
alloc_handle
(
current
->
process
,
console
->
evt
,
SYNCHRONIZE
|
GENERIC_READ
|
GENERIC_WRITE
,
0
)))
{
process
->
console
=
(
struct
console_input
*
)
grab_object
(
console
);
console
->
num_proc
++
;
if
(
attach
)
{
process
->
console
=
(
struct
console_input
*
)
grab_object
(
console
);
console
->
num_proc
++
;
}
reply
->
handle_in
=
in
;
reply
->
event
=
evt
;
release_object
(
console
);
...
...
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