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
f895ad18
Commit
f895ad18
authored
Jul 29, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of error codes.
parent
e491e8f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
handle.c
server/handle.c
+2
-2
thread.c
server/thread.c
+1
-1
No files found.
server/handle.c
View file @
f895ad18
...
...
@@ -331,13 +331,13 @@ int close_handle( struct process *process, obj_handle_t handle, int *fd )
if
(
!
(
entry
=
get_handle
(
process
,
handle
)))
return
0
;
if
(
entry
->
access
&
RESERVED_CLOSE_PROTECT
)
{
set_error
(
STATUS_
INVALID_HAND
LE
);
set_error
(
STATUS_
HANDLE_NOT_CLOSAB
LE
);
return
0
;
}
obj
=
entry
->
ptr
;
if
(
!
obj
->
ops
->
close_handle
(
obj
,
process
,
handle
))
{
set_error
(
STATUS_
INVALID_HAND
LE
);
set_error
(
STATUS_
HANDLE_NOT_CLOSAB
LE
);
return
0
;
}
entry
->
ptr
=
NULL
;
...
...
server/thread.c
View file @
f895ad18
...
...
@@ -270,7 +270,7 @@ struct thread *get_thread_from_id( thread_id_t id )
struct
object
*
obj
=
get_ptid_entry
(
id
);
if
(
obj
&&
obj
->
ops
==
&
thread_ops
)
return
(
struct
thread
*
)
grab_object
(
obj
);
set_
win32_error
(
ERROR_INVALID_THREAD_
ID
);
set_
error
(
STATUS_INVALID_C
ID
);
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