Author: hbelusca
Date: Sun Jun 30 19:21:42 2013
New Revision: 59400
URL:
http://svn.reactos.org/svn/reactos?rev=59400&view=rev
Log:
[CONSRV]
Improve debug prints.
Modified:
trunk/reactos/win32ss/user/consrv/handle.c
Modified: trunk/reactos/win32ss/user/consrv/handle.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/consrv/handle…
==============================================================================
--- trunk/reactos/win32ss/user/consrv/handle.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/consrv/handle.c [iso-8859-1] Sun Jun 30 19:21:42 2013
@@ -418,8 +418,7 @@
ASSERT(Object);
if (Entry) *Entry = NULL;
- // DPRINT("ConSrvGetObject, Object: %x, %x, %x\n",
- // Object, Handle, ProcessData ? ProcessData->HandleTableSize : 0);
+ DPRINT("ConSrvGetObject -- Object: 0x%x, Handle: 0x%x\n", Object, Handle);
RtlEnterCriticalSection(&ProcessData->HandleTableLock);
@@ -436,7 +435,9 @@
/*(Type != 0 && ObjectEntry->Type != Type)*/
(Type != 0 && (ObjectEntry->Type & Type) == 0) )
{
- DPRINT1("ConSrvGetObject returning invalid handle (%x) of type %lu with
access %lu ; wanted type %lu with access %lu\n", Handle, ObjectEntry->Type,
HandleEntry->Access, Type, Access);
+ DPRINT1("ConSrvGetObject -- Invalid handle 0x%x of type %lu with access %lu
; retrieved object 0x%x (handle 0x%x) of type %lu with access %lu\n",
+ Handle, Type, Access, ObjectEntry, HandleEntry, (ObjectEntry ?
ObjectEntry->Type : 0), (HandleEntry ? HandleEntry->Access : 0));
+
RtlLeaveCriticalSection(&ProcessData->HandleTableLock);
return STATUS_INVALID_HANDLE;
}