ntdll: Remove NULL checks for attr, which has already been dereferenced.
This commit is contained in:
parent
9f42e8eb63
commit
36e73d296b
|
@ -1956,8 +1956,8 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_
|
|||
SERVER_START_REQ( open_mapping )
|
||||
{
|
||||
req->access = access;
|
||||
req->attributes = (attr) ? attr->Attributes : 0;
|
||||
req->rootdir = attr ? attr->RootDirectory : 0;
|
||||
req->attributes = attr->Attributes;
|
||||
req->rootdir = attr->RootDirectory;
|
||||
wine_server_add_data( req, attr->ObjectName->Buffer, len );
|
||||
if (!(ret = wine_server_call( req ))) *handle = reply->handle;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue