Commit 36e73d29 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

ntdll: Remove NULL checks for attr, which has already been dereferenced.

parent 9f42e8eb
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment