mirror of
https://github.com/reactos/reactos.git
synced 2025-06-28 15:49:43 +00:00
[NTOS:CM]
Replace a hardcoded value with something more readable. svn path=/trunk/; revision=63506
This commit is contained in:
parent
64fcc42ee5
commit
a5a69f46e6
4 changed files with 11 additions and 6 deletions
|
@ -1164,7 +1164,7 @@ CmpFlushNotifiesOnKeyBodyList(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
||||||
{
|
{
|
||||||
/* Get the key body */
|
/* Get the key body */
|
||||||
KeyBody = CONTAINING_RECORD(NextEntry, CM_KEY_BODY, KeyBodyList);
|
KeyBody = CONTAINING_RECORD(NextEntry, CM_KEY_BODY, KeyBodyList);
|
||||||
ASSERT(KeyBody->Type == '20yk');
|
ASSERT(KeyBody->Type == CM_KEY_BODY_TYPE);
|
||||||
|
|
||||||
/* Check for notifications */
|
/* Check for notifications */
|
||||||
if (KeyBody->NotifyBlock)
|
if (KeyBody->NotifyBlock)
|
||||||
|
|
|
@ -286,7 +286,7 @@ CmpDoCreateChild(IN PHHIVE Hive,
|
||||||
|
|
||||||
/* Setup the key body */
|
/* Setup the key body */
|
||||||
KeyBody = (PCM_KEY_BODY)(*Object);
|
KeyBody = (PCM_KEY_BODY)(*Object);
|
||||||
KeyBody->Type = '20yk';
|
KeyBody->Type = CM_KEY_BODY_TYPE;
|
||||||
KeyBody->KeyControlBlock = NULL;
|
KeyBody->KeyControlBlock = NULL;
|
||||||
|
|
||||||
/* Check if we had a class */
|
/* Check if we had a class */
|
||||||
|
@ -691,7 +691,7 @@ CmpDoOpen(IN PHHIVE Hive,
|
||||||
/* Get the key body and fill it out */
|
/* Get the key body and fill it out */
|
||||||
KeyBody = (PCM_KEY_BODY)(*Object);
|
KeyBody = (PCM_KEY_BODY)(*Object);
|
||||||
KeyBody->KeyControlBlock = Kcb;
|
KeyBody->KeyControlBlock = Kcb;
|
||||||
KeyBody->Type = '20yk';
|
KeyBody->Type = CM_KEY_BODY_TYPE;
|
||||||
KeyBody->ProcessID = PsGetCurrentProcessId();
|
KeyBody->ProcessID = PsGetCurrentProcessId();
|
||||||
KeyBody->NotifyBlock = NULL;
|
KeyBody->NotifyBlock = NULL;
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ CmpDeleteKeyObject(PVOID DeletedObject)
|
||||||
CmpLockRegistry();
|
CmpLockRegistry();
|
||||||
|
|
||||||
/* Make sure this is a valid key body */
|
/* Make sure this is a valid key body */
|
||||||
if (KeyBody->Type == '20yk')
|
if (KeyBody->Type == CM_KEY_BODY_TYPE)
|
||||||
{
|
{
|
||||||
/* Get the KCB */
|
/* Get the KCB */
|
||||||
Kcb = KeyBody->KeyControlBlock;
|
Kcb = KeyBody->KeyControlBlock;
|
||||||
|
@ -166,7 +166,7 @@ CmpCloseKeyObject(IN PEPROCESS Process OPTIONAL,
|
||||||
if (SystemHandleCount > 1) return;
|
if (SystemHandleCount > 1) return;
|
||||||
|
|
||||||
/* Make sure we're a valid key body */
|
/* Make sure we're a valid key body */
|
||||||
if (KeyBody->Type == '20yk')
|
if (KeyBody->Type == CM_KEY_BODY_TYPE)
|
||||||
{
|
{
|
||||||
/* Don't do anything if we don't have a notify block */
|
/* Don't do anything if we don't have a notify block */
|
||||||
if (!KeyBody->NotifyBlock) return;
|
if (!KeyBody->NotifyBlock) return;
|
||||||
|
@ -1056,7 +1056,7 @@ CmpCreateRegistryRoot(VOID)
|
||||||
|
|
||||||
/* Initialize the object */
|
/* Initialize the object */
|
||||||
RootKey->KeyControlBlock = Kcb;
|
RootKey->KeyControlBlock = Kcb;
|
||||||
RootKey->Type = '20yk';
|
RootKey->Type = CM_KEY_BODY_TYPE;
|
||||||
RootKey->NotifyBlock = NULL;
|
RootKey->NotifyBlock = NULL;
|
||||||
RootKey->ProcessID = PsGetCurrentProcessId();
|
RootKey->ProcessID = PsGetCurrentProcessId();
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,11 @@
|
||||||
#define CM_KCB_INVALID_CACHED_INFO 0x40
|
#define CM_KCB_INVALID_CACHED_INFO 0x40
|
||||||
#define CM_KCB_READ_ONLY_KEY 0x80
|
#define CM_KCB_READ_ONLY_KEY 0x80
|
||||||
|
|
||||||
|
//
|
||||||
|
// CM_KEY_BODY Types
|
||||||
|
//
|
||||||
|
#define CM_KEY_BODY_TYPE 0x6B793032
|
||||||
|
|
||||||
//
|
//
|
||||||
// CM_KEY_VALUE Types
|
// CM_KEY_VALUE Types
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue