Module: wine Branch: master Commit: 6c2e14e5b0f47cd519431399b203716c34e5ed0f URL: http://source.winehq.org/git/wine.git/?a=commit;h=6c2e14e5b0f47cd519431399b2...
Author: Marcus Meissner marcus@jet.franken.de Date: Sun Apr 8 18:11:47 2007 +0200
ntdll: Remove superflous NULL checks.
---
dlls/ntdll/file.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 0a7eccb..6584a92 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -2119,8 +2119,8 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access, SERVER_START_REQ( create_named_pipe ) { req->access = access; - req->attributes = (attr) ? attr->Attributes : 0; - req->rootdir = attr ? attr->RootDirectory : 0; + req->attributes = attr->Attributes; + req->rootdir = attr->RootDirectory; req->options = options; req->flags = (pipe_type) ? NAMED_PIPE_MESSAGE_STREAM_WRITE : 0 |