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
31b02bbd
Commit
31b02bbd
authored
Jan 04, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Avoid crash in alloc_console when the process has no parent.
parent
f9cbc4c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
console.c
server/console.c
+13
-5
No files found.
server/console.c
View file @
31b02bbd
...
...
@@ -1252,12 +1252,20 @@ DECL_HANDLER(alloc_console)
struct
process
*
renderer
=
current
->
process
;
struct
console_input
*
console
;
process
=
(
req
->
pid
)
?
get_process_from_id
(
req
->
pid
)
:
(
struct
process
*
)
grab_object
(
renderer
->
parent
);
if
(
req
->
pid
)
{
if
(
!
(
process
=
get_process_from_id
(
req
->
pid
)))
return
;
}
else
{
if
(
!
(
process
=
renderer
->
parent
))
{
set_error
(
STATUS_ACCESS_DENIED
);
return
;
}
grab_object
(
process
);
}
reply
->
handle_in
=
0
;
reply
->
event
=
0
;
if
(
!
process
)
return
;
if
(
process
!=
renderer
&&
process
->
console
)
{
set_error
(
STATUS_ACCESS_DENIED
);
...
...
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