Fix more DPRINTs.

svn path=/trunk/; revision=16413
This commit is contained in:
Filip Navara 2005-07-04 21:12:35 +00:00
parent 382e1c8635
commit 8f08cb04c9
2 changed files with 4 additions and 4 deletions

View file

@ -833,7 +833,7 @@ ObReferenceObjectByHandle(HANDLE Handle,
if (ObjectType != NULL && ObjectType != ObjectHeader->Type)
{
DPRINT("ObjectType mismatch: %wZ vs %wZ (handle 0x%x)\n", &ObjectType->TypeName, ObjectHeader->Type ? &ObjectHeader->Type->TypeName : NULL, Handle);
DPRINT("ObjectType mismatch: %wZ vs %wZ (handle 0x%x)\n", &ObjectType->Name, ObjectHeader->Type ? &ObjectHeader->Type->Name : NULL, Handle);
ExUnlockHandleTableEntry(HandleTable,
HandleEntry);
@ -1142,7 +1142,7 @@ ObInsertObject(IN PVOID Object,
ObjectCreateInfo->Attributes & OBJ_INHERIT,
Handle);
DPRINT("handle Created: %d. refcount. handlecount %d %d\n",
*Handle, Header->RefCount, Header->HandleCount);
*Handle, Header->PointerCount, Header->HandleCount);
}
/* We can delete the Create Info now */

View file

@ -863,9 +863,9 @@ ObReferenceObjectByPointer(IN PVOID Object,
DPRINT("Failed %p (type was %x %wZ) should be %x %wZ\n",
Header,
Header->Type,
&BODY_TO_HEADER(Header->Type)->NameInfo,
&HEADER_TO_OBJECT_NAME(BODY_TO_HEADER(Header->Type))->Name,
ObjectType,
&BODY_TO_HEADER(ObjectType)->NameInfo);
&HEADER_TO_OBJECT_NAME(BODY_TO_HEADER(ObjectType))->Name);
return(STATUS_UNSUCCESSFUL);
}
if (Header->Type == PsProcessType)