Francois Gouget : ntdll: Don' t trace potentially uninitialized structures if we are not going to use them .

Alexandre Julliard julliard at winehq.org
Mon Sep 19 13:48:42 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun Sep 18 20:09:12 2011 +0200

ntdll: Don't trace potentially uninitialized structures if we are not going to use them.

---

 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 c103ddd..18da18d 100644
--- a/dlls/ntdll/om.c
+++ b/dlls/ntdll/om.c
@@ -404,10 +404,10 @@ NTSTATUS WINAPI NtOpenDirectoryObject(PHANDLE DirectoryHandle, ACCESS_MASK Desir
                                       POBJECT_ATTRIBUTES ObjectAttributes)
 {
     NTSTATUS ret;
-    TRACE("(%p,0x%08x,%s)\n", DirectoryHandle, DesiredAccess, debugstr_ObjectAttributes(ObjectAttributes));
 
     if (!DirectoryHandle) return STATUS_ACCESS_VIOLATION;
     if (!ObjectAttributes) return STATUS_INVALID_PARAMETER;
+    TRACE("(%p,0x%08x,%s)\n", DirectoryHandle, DesiredAccess, debugstr_ObjectAttributes(ObjectAttributes));
     /* Have to test it here because server won't know difference between
      * ObjectName == NULL and ObjectName == "" */
     if (!ObjectAttributes->ObjectName)
@@ -452,9 +452,9 @@ NTSTATUS WINAPI NtCreateDirectoryObject(PHANDLE DirectoryHandle, ACCESS_MASK Des
                                         POBJECT_ATTRIBUTES ObjectAttributes)
 {
     NTSTATUS ret;
-    TRACE("(%p,0x%08x,%s)\n", DirectoryHandle, DesiredAccess, debugstr_ObjectAttributes(ObjectAttributes));
 
     if (!DirectoryHandle) return STATUS_ACCESS_VIOLATION;
+    TRACE("(%p,0x%08x,%s)\n", DirectoryHandle, DesiredAccess, debugstr_ObjectAttributes(ObjectAttributes));
 
     SERVER_START_REQ(create_directory)
     {




More information about the wine-cvs mailing list