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

This commit is contained in:
James Hawkins 2008-05-20 00:48:29 -05:00 committed by Alexandre Julliard
parent 9f42e8eb63
commit 36e73d296b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}