Moved TRACEs to the beginning of functions.

This commit is contained in:
Alexander Yaworsky 2004-09-22 04:03:10 +00:00 committed by Alexandre Julliard
parent fa417e2869
commit aadffd1f35

View File

@ -1162,16 +1162,16 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, PVOID addr,
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 @@ NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, ULONG *siz
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 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, ULONG *
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,15 +1608,15 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
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 */
if ((offset->u.LowPart & granularity_mask) ||