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
eb662108
Commit
eb662108
authored
Feb 09, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Avoid redundant open call when looking for an object type.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ccefdb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
directory.c
server/directory.c
+6
-6
No files found.
server/directory.c
View file @
eb662108
...
...
@@ -269,13 +269,13 @@ struct object_type *get_object_type( const struct unicode_str *name )
{
struct
object_type
*
type
;
if
((
type
=
open_object_dir
(
dir_objtype
,
name
,
0
,
&
object_type_ops
)))
return
type
;
if
((
type
=
create_named_object_dir
(
dir_objtype
,
name
,
0
,
&
object_type_ops
)))
if
((
type
=
create_named_object_dir
(
dir_objtype
,
name
,
OBJ_OPENIF
,
&
object_type_ops
)))
{
grab_object
(
type
);
make_object_static
(
&
type
->
obj
);
if
(
get_error
()
!=
STATUS_OBJECT_NAME_EXISTS
)
{
grab_object
(
type
);
make_object_static
(
&
type
->
obj
);
}
clear_error
();
}
return
type
;
...
...
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