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
0901b232
Commit
0901b232
authored
Jun 14, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call the close_handle notification for all objects when releasing a
handle table.
parent
dacc3dbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
handle.c
server/handle.c
+12
-2
No files found.
server/handle.c
View file @
0901b232
...
...
@@ -139,11 +139,21 @@ static void handle_table_destroy( struct object *obj )
{
int
i
;
struct
handle_table
*
table
=
(
struct
handle_table
*
)
obj
;
struct
handle_entry
*
entry
=
table
->
entries
;
struct
handle_entry
*
entry
;
assert
(
obj
->
ops
==
&
handle_table_ops
);
for
(
i
=
0
;
i
<=
table
->
last
;
i
++
,
entry
++
)
/* first notify all objects that handles are being closed */
if
(
table
->
process
)
{
for
(
i
=
0
,
entry
=
table
->
entries
;
i
<=
table
->
last
;
i
++
,
entry
++
)
{
struct
object
*
obj
=
entry
->
ptr
;
if
(
obj
)
obj
->
ops
->
close_handle
(
obj
,
table
->
process
,
index_to_handle
(
i
)
);
}
}
for
(
i
=
0
,
entry
=
table
->
entries
;
i
<=
table
->
last
;
i
++
,
entry
++
)
{
struct
object
*
obj
=
entry
->
ptr
;
entry
->
ptr
=
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