Jeff Latimer : ntdll: Remove an unnecessary NULL check.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 2 06:45:54 CST 2007


Module: wine
Branch: master
Commit: 588a350f6d29e6f90c1ff9e4f461578e3dbb402a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=588a350f6d29e6f90c1ff9e4f461578e3dbb402a

Author: Jeff Latimer <lats at yless4u.com.au>
Date:   Tue Jan  2 16:25:30 2007 +1100

ntdll: Remove an unnecessary NULL check.

---

 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 038b755..543fcfb 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -2212,8 +2212,8 @@ NTSTATUS WINAPI NtCreateMailslotFile(PHA
     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,




More information about the wine-cvs mailing list