ntdll: Remove an unnecessary NULL pointer check.

This commit is contained in:
Alexandre Julliard 2009-12-02 17:38:05 +01:00
parent 7dc1c2af52
commit d189ed6fdd
1 changed files with 5 additions and 9 deletions

View File

@ -142,21 +142,17 @@ 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)
{
RtlFreeAnsiString( &unix_name );
return io->u.Status;
}
}
SERVER_START_REQ( create_file )
{