mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Less hack, more assert
svn path=/trunk/; revision=38275
This commit is contained in:
parent
695eb19e19
commit
5a52daeb1b
1 changed files with 1 additions and 10 deletions
|
@ -492,16 +492,7 @@ CmpDoCreate(IN PHHIVE Hive,
|
||||||
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KeyCell == Cell);
|
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KeyCell == Cell);
|
||||||
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KeyHive == Hive);
|
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KeyHive == Hive);
|
||||||
ASSERT(KeyBody->KeyControlBlock->ParentKcb == ParentKcb);
|
ASSERT(KeyBody->KeyControlBlock->ParentKcb == ParentKcb);
|
||||||
//ASSERT(KeyBody->KeyControlBlock->ParentKcb->KcbMaxNameLen == KeyNode->MaxNameLen);
|
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KcbMaxNameLen == KeyNode->MaxNameLen);
|
||||||
if (KeyBody->KeyControlBlock->ParentKcb->KcbMaxNameLen != KeyNode->MaxNameLen)
|
|
||||||
{
|
|
||||||
/* HACK: this gets unsynced due to (?) mismatching KCB referencing */
|
|
||||||
DPRINT1("BUG: KCB MaxNameLen %d does not match KeyNode's MaxNameLen %d!\n",
|
|
||||||
KeyBody->KeyControlBlock->ParentKcb->KcbMaxNameLen, KeyNode->MaxNameLen);
|
|
||||||
|
|
||||||
/* Manually sync MaxNameLens, remove once fixed */
|
|
||||||
KeyBody->KeyControlBlock->ParentKcb->KcbMaxNameLen = KeyNode->MaxNameLen;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Update the timestamp */
|
/* Update the timestamp */
|
||||||
KeQuerySystemTime(&TimeStamp);
|
KeQuerySystemTime(&TimeStamp);
|
||||||
|
|
Loading…
Reference in a new issue