Commit ace8fd72 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

ntdll: attr is never NULL inside NtCreateFile.

parent a302f03c
...@@ -159,8 +159,8 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB ...@@ -159,8 +159,8 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB
SERVER_START_REQ( open_named_pipe ) SERVER_START_REQ( open_named_pipe )
{ {
req->access = access; req->access = access;
req->attributes = (attr) ? attr->Attributes : 0; req->attributes = attr->Attributes;
req->rootdir = attr ? attr->RootDirectory : 0; req->rootdir = attr->RootDirectory;
req->flags = options; req->flags = options;
wine_server_add_data( req, attr->ObjectName->Buffer, wine_server_add_data( req, attr->ObjectName->Buffer,
attr->ObjectName->Length ); attr->ObjectName->Length );
...@@ -179,8 +179,8 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB ...@@ -179,8 +179,8 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB
SERVER_START_REQ( open_mailslot ) SERVER_START_REQ( open_mailslot )
{ {
req->access = access & GENERIC_WRITE; req->access = access & GENERIC_WRITE;
req->attributes = (attr) ? attr->Attributes : 0; req->attributes = attr->Attributes;
req->rootdir = attr ? attr->RootDirectory : 0; req->rootdir = attr->RootDirectory;
req->sharing = sharing; req->sharing = sharing;
wine_server_add_data( req, attr->ObjectName->Buffer, wine_server_add_data( req, attr->ObjectName->Buffer,
attr->ObjectName->Length ); attr->ObjectName->Length );
......
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