mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Move two helper macros into cm.h, and uncomment DPRINTs using them in registry code
svn path=/trunk/; revision=23365
This commit is contained in:
parent
17509fb1e5
commit
6698793717
3 changed files with 7 additions and 6 deletions
|
@ -461,4 +461,8 @@ static __inline HCELL_INDEX xHvAllocateCell(char *file, int line, PREGISTRY_HIVE
|
|||
#define HvAllocateCell(hive, size) xHvAllocateCell(__FILE__, __LINE__, hive, size)
|
||||
#endif
|
||||
|
||||
// Some Ob definitions for debug messages in Cm
|
||||
#define ObGetObjectPointerCount(x) OBJECT_TO_OBJECT_HEADER(x)->PointerCount
|
||||
#define ObGetObjectHandleCount(x) OBJECT_TO_OBJECT_HEADER(x)->HandleCount
|
||||
|
||||
#endif /*__INCLUDE_CM_H*/
|
||||
|
|
|
@ -638,7 +638,7 @@ NtDeleteKey(IN HANDLE KeyHandle)
|
|||
ExReleaseResourceLite(&CmiRegistryLock);
|
||||
KeLeaveCriticalRegion();
|
||||
|
||||
//DPRINT("PointerCount %lu\n", ObGetObjectPointerCount((PVOID)KeyObject));
|
||||
DPRINT("PointerCount %lu\n", ObGetObjectPointerCount((PVOID)KeyObject));
|
||||
|
||||
/* Remove the keep-alive reference */
|
||||
ObDereferenceObject(KeyObject);
|
||||
|
@ -652,8 +652,8 @@ NtDeleteKey(IN HANDLE KeyHandle)
|
|||
/* Dereference the object */
|
||||
ObDereferenceObject(KeyObject);
|
||||
|
||||
//DPRINT("PointerCount %lu\n", ObGetObjectPointerCount((PVOID)KeyObject));
|
||||
//DPRINT("HandleCount %lu\n", ObGetObjectHandleCount((PVOID)KeyObject));
|
||||
DPRINT("PointerCount %lu\n", ObGetObjectPointerCount((PVOID)KeyObject));
|
||||
DPRINT("HandleCount %lu\n", ObGetObjectHandleCount((PVOID)KeyObject));
|
||||
|
||||
/*
|
||||
* Note:
|
||||
|
|
|
@ -22,9 +22,6 @@
|
|||
#pragma alloc_text(INIT, CmInit2)
|
||||
#endif
|
||||
|
||||
#define ObGetObjectPointerCount(x) OBJECT_TO_OBJECT_HEADER(x)->PointerCount
|
||||
#define ObGetObjectHandleCount(x) OBJECT_TO_OBJECT_HEADER(x)->HandleCount
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
POBJECT_TYPE CmiKeyType = NULL;
|
||||
|
|
Loading…
Reference in a new issue