From 588a350f6d29e6f90c1ff9e4f461578e3dbb402a Mon Sep 17 00:00:00 2001 From: Jeff Latimer Date: Tue, 2 Jan 2007 16:25:30 +1100 Subject: [PATCH] ntdll: Remove an unnecessary NULL check. --- dlls/ntdll/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 038b75530f5..543fcfb8747 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -2212,8 +2212,8 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE pHandle, ULONG DesiredAccess, SERVER_START_REQ( create_mailslot ) { req->access = DesiredAccess; - req->attributes = (attr) ? attr->Attributes : 0; - req->rootdir = attr ? attr->RootDirectory : 0; + req->attributes = attr->Attributes; + req->rootdir = attr->RootDirectory; req->max_msgsize = MaxMessageSize; req->read_timeout = (TimeOut->QuadPart <= 0) ? TimeOut->QuadPart / -10000 : -1; wine_server_add_data( req, attr->ObjectName->Buffer,