Robert Shearman : ntdll: If ObjectAttributes is NULL then an error is returned at the

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 19 03:35:25 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: e4b51580e1ba482e3a3f66bcd5e24f790decf42b
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=e4b51580e1ba482e3a3f66bcd5e24f790decf42b

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat Jun 17 12:32:05 2006 +0100

ntdll: If ObjectAttributes is NULL then an error is returned at the
start of the NtOpenSymbolicLinkObject, therefore ObjectAttributes does
not need to be checked for NULL later on in the function.

---

 dlls/ntdll/om.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c
index 19d1901..41855dc 100644
--- a/dlls/ntdll/om.c
+++ b/dlls/ntdll/om.c
@@ -506,8 +506,8 @@ NTSTATUS WINAPI NtOpenSymbolicLinkObject
     SERVER_START_REQ(open_symlink)
     {
         req->access = DesiredAccess;
-        req->attributes = ObjectAttributes ? ObjectAttributes->Attributes : 0;
-        req->rootdir = ObjectAttributes ? ObjectAttributes->RootDirectory : 0;
+        req->attributes = ObjectAttributes->Attributes;
+        req->rootdir = ObjectAttributes->RootDirectory;
         if (ObjectAttributes->ObjectName)
             wine_server_add_data(req, ObjectAttributes->ObjectName->Buffer,
                                  ObjectAttributes->ObjectName->Length);




More information about the wine-cvs mailing list