ntdll/virtual.c: Moved TRACEs to the beginning of functions

Alexander Yaworsky yaworsky at migusoft.ru
Tue Sep 21 02:55:41 CDT 2004


Hello

ChangeLog:

Moved TRACEs to the beginning of functions

Index: dlls/ntdll/virtual.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/virtual.c,v
retrieving revision 1.39
diff -u -r1.39 virtual.c
--- dlls/ntdll/virtual.c 21 Sep 2004 00:23:50 -0000 1.39
+++ dlls/ntdll/virtual.c 21 Sep 2004 07:33:39 -0000
@@ -1162,16 +1162,16 @@
     NTSTATUS status = STATUS_SUCCESS;
     struct file_view *view;
 
+    TRACE("%p %p %08lx %lx %08lx\n", process, addr, size, type, protect );
+
+    if (!size) return STATUS_INVALID_PARAMETER;
+
     if (!is_current_process( process ))
     {
         ERR("Unsupported on other process\n");
         return STATUS_ACCESS_DENIED;
     }
 
-    TRACE("%p %08lx %lx %08lx\n", addr, size, type, protect );
-
-    if (!size) return STATUS_INVALID_PARAMETER;
-
     /* Round parameters to a page boundary */
 
     if (size > 0x7fc00000) return STATUS_WORKING_SET_LIMIT_RANGE; /* 2Gb - 4Mb */
@@ -1268,14 +1268,14 @@
     LPVOID addr = *addr_ptr;
     DWORD size = *size_ptr;
 
+    TRACE("%p %p %08lx %lx\n", process, addr, size, type );
+
     if (!is_current_process( process ))
     {
         ERR("Unsupported on other process\n");
         return STATUS_ACCESS_DENIED;
     }
 
-    TRACE("%p %08lx %lx\n", addr, size, type );
-
     /* Fix the parameters */
 
     size = ROUND_SIZE( addr, size );
@@ -1344,14 +1344,14 @@
     DWORD prot, size = *size_ptr;
     LPVOID addr = *addr_ptr;
 
+    TRACE("%p %p %08lx %08lx\n", process, addr, size, new_prot );
+
     if (!is_current_process( process ))
     {
         ERR("Unsupported on other process\n");
         return STATUS_ACCESS_DENIED;
     }
 
-    TRACE("%p %08lx %08lx\n", addr, size, new_prot );
-
     /* Fix the parameters */
 
     size = ROUND_SIZE( addr, size );
@@ -1608,14 +1608,14 @@
     HANDLE shared_file;
     BOOL removable = FALSE;
 
+    TRACE("handle=%p process=%p addr=%p off=%lx%08lx size=%x access=%lx\n",
+          handle, process, *addr_ptr, offset->u.HighPart, offset->u.LowPart, size, protect );
+
     if (!is_current_process( process ))
     {
         ERR("Unsupported on other process\n");
         return STATUS_ACCESS_DENIED;
     }
-
-    TRACE("handle=%p addr=%p off=%lx%08lx size=%x access=%lx\n",
-          handle, *addr_ptr, offset->u.HighPart, offset->u.LowPart, size, protect );
 
     /* Check parameters */
 




More information about the wine-patches mailing list