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
687b3dc2
Commit
687b3dc2
authored
Sep 16, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Ensure we set proper errors when getting a NULL fd out of a handle.
parent
190c3518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
console.c
server/console.c
+8
-2
No files found.
server/console.c
View file @
687b3dc2
...
...
@@ -193,7 +193,10 @@ static struct fd *console_input_get_fd( struct object* obj )
{
struct
console_input
*
console_input
=
(
struct
console_input
*
)
obj
;
assert
(
obj
->
ops
==
&
console_input_ops
);
return
console_input
->
fd
?
(
struct
fd
*
)
grab_object
(
console_input
->
fd
)
:
NULL
;
if
(
console_input
->
fd
)
return
(
struct
fd
*
)
grab_object
(
console_input
->
fd
);
set_error
(
STATUS_OBJECT_TYPE_MISMATCH
);
return
NULL
;
}
static
enum
server_fd_type
console_get_fd_type
(
struct
fd
*
fd
)
...
...
@@ -1144,7 +1147,10 @@ static struct fd *screen_buffer_get_fd( struct object *obj )
{
struct
screen_buffer
*
screen_buffer
=
(
struct
screen_buffer
*
)
obj
;
assert
(
obj
->
ops
==
&
screen_buffer_ops
);
return
screen_buffer
->
fd
?
(
struct
fd
*
)
grab_object
(
screen_buffer
->
fd
)
:
NULL
;
if
(
screen_buffer
->
fd
)
return
(
struct
fd
*
)
grab_object
(
screen_buffer
->
fd
);
set_error
(
STATUS_OBJECT_TYPE_MISMATCH
);
return
NULL
;
}
/* write data into a screen buffer */
...
...
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