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
1f255346
Commit
1f255346
authored
Aug 28, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Streamline a bit the console allocation code.
parent
465f3d1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
console.c
server/console.c
+7
-11
No files found.
server/console.c
View file @
1f255346
...
...
@@ -1295,7 +1295,6 @@ DECL_HANDLER(alloc_console)
obj_handle_t
in
=
0
;
obj_handle_t
evt
=
0
;
struct
process
*
process
;
struct
process
*
renderer
=
current
->
process
;
struct
console_input
*
console
;
if
(
req
->
pid
)
...
...
@@ -1304,7 +1303,7 @@ DECL_HANDLER(alloc_console)
}
else
{
if
(
!
(
process
=
renderer
->
parent
))
if
(
!
(
process
=
current
->
process
->
parent
))
{
set_error
(
STATUS_ACCESS_DENIED
);
return
;
...
...
@@ -1312,18 +1311,15 @@ DECL_HANDLER(alloc_console)
grab_object
(
process
);
}
if
(
process
!=
renderer
&&
process
->
console
)
{
if
(
process
!=
current
->
process
&&
process
->
console
)
set_error
(
STATUS_ACCESS_DENIED
);
goto
the_end
;
}
if
((
console
=
(
struct
console_input
*
)
create_console_input
(
current
)))
else
if
((
console
=
(
struct
console_input
*
)
create_console_input
(
current
)))
{
if
((
in
=
alloc_handle
(
renderer
,
console
,
req
->
access
,
req
->
attributes
)))
if
((
in
=
alloc_handle
(
current
->
process
,
console
,
req
->
access
,
req
->
attributes
)))
{
if
((
evt
=
alloc_handle
(
renderer
,
console
->
evt
,
SYNCHRONIZE
|
GENERIC_READ
|
GENERIC_WRITE
,
0
)))
if
((
evt
=
alloc_handle
(
current
->
process
,
console
->
evt
,
SYNCHRONIZE
|
GENERIC_READ
|
GENERIC_WRITE
,
0
)))
{
if
(
process
!=
renderer
)
if
(
process
!=
current
->
process
)
{
process
->
console
=
(
struct
console_input
*
)
grab_object
(
console
);
console
->
num_proc
++
;
...
...
@@ -1333,7 +1329,7 @@ DECL_HANDLER(alloc_console)
release_object
(
console
);
goto
the_end
;
}
close_handle
(
renderer
,
in
);
close_handle
(
current
->
process
,
in
);
}
free_console
(
process
);
}
...
...
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