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
d189ed6f
Commit
d189ed6f
authored
Dec 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove an unnecessary NULL pointer check.
parent
7dc1c2af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
file.c
dlls/ntdll/file.c
+5
-9
No files found.
dlls/ntdll/file.c
View file @
d189ed6f
...
...
@@ -142,20 +142,16 @@ static NTSTATUS FILE_CreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATT
if
(
io
->
u
.
Status
==
STATUS_SUCCESS
)
{
struct
security_descriptor
*
sd
=
NULL
;
struct
security_descriptor
*
sd
;
struct
object_attributes
objattr
;
objattr
.
rootdir
=
wine_server_obj_handle
(
attr
->
RootDirectory
);
objattr
.
sd_len
=
0
;
objattr
.
name_len
=
0
;
if
(
attr
)
io
->
u
.
Status
=
NTDLL_create_struct_sd
(
attr
->
SecurityDescriptor
,
&
sd
,
&
objattr
.
sd_len
);
if
(
io
->
u
.
Status
!=
STATUS_SUCCESS
)
{
io
->
u
.
Status
=
NTDLL_create_struct_sd
(
attr
->
SecurityDescriptor
,
&
sd
,
&
objattr
.
sd_len
);
if
(
io
->
u
.
Status
!=
STATUS_SUCCESS
)
{
RtlFreeAnsiString
(
&
unix_name
);
return
io
->
u
.
Status
;
}
RtlFreeAnsiString
(
&
unix_name
);
return
io
->
u
.
Status
;
}
SERVER_START_REQ
(
create_file
)
...
...
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