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
82c84548
Commit
82c84548
authored
Sep 23, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use OBJ_PERMANENT for permanent objects.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5c4d6cf8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
directory.c
server/directory.c
+0
-0
object.c
server/object.c
+8
-6
process.c
server/process.c
+2
-2
No files found.
server/directory.c
View file @
82c84548
This diff is collapsed.
Click to expand it.
server/object.c
View file @
82c84548
...
...
@@ -293,11 +293,6 @@ static struct object *create_object( struct object *parent, const struct object_
name_ptr
->
obj
=
obj
;
obj
->
name
=
name_ptr
;
if
(
attributes
&
OBJ_PERMANENT
)
{
make_object_static
(
obj
);
grab_object
(
obj
);
}
return
obj
;
failed:
...
...
@@ -325,7 +320,7 @@ void *create_named_object( struct object *parent, const struct object_ops *ops,
free_object
(
new_obj
);
return
NULL
;
}
return
new_obj
;
goto
done
;
}
if
(
!
(
obj
=
lookup_named_object
(
parent
,
name
,
attributes
,
&
new_name
)))
return
NULL
;
...
...
@@ -348,6 +343,13 @@ void *create_named_object( struct object *parent, const struct object_ops *ops,
new_obj
=
create_object
(
obj
,
ops
,
&
new_name
,
attributes
,
sd
);
release_object
(
obj
);
done:
if
(
attributes
&
OBJ_PERMANENT
)
{
make_object_static
(
new_obj
);
grab_object
(
new_obj
);
}
return
new_obj
;
}
...
...
server/process.c
View file @
82c84548
...
...
@@ -1633,8 +1633,8 @@ DECL_HANDLER(make_process_system)
if
(
!
shutdown_event
)
{
if
(
!
(
shutdown_event
=
create_event
(
NULL
,
NULL
,
0
,
1
,
0
,
NULL
)))
return
;
make_object_static
(
(
struct
object
*
)
shutdown_event
);
if
(
!
(
shutdown_event
=
create_event
(
NULL
,
NULL
,
OBJ_PERMANENT
,
1
,
0
,
NULL
)))
return
;
release_object
(
shutdown_event
);
}
if
(
!
(
reply
->
event
=
alloc_handle
(
current
->
process
,
shutdown_event
,
SYNCHRONIZE
,
0
)))
...
...
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