Author: sginsberg
Date: Mon Dec 22 13:55:23 2008
New Revision: 38275
URL:
http://svn.reactos.org/svn/reactos?rev=38275&view=rev
Log:
- Less hack, more assert
Modified:
trunk/reactos/ntoskrnl/config/cmparse.c
Modified: trunk/reactos/ntoskrnl/config/cmparse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmparse.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmparse.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmparse.c [iso-8859-1] Mon Dec 22 13:55:23 2008
@@ -492,16 +492,7 @@
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KeyCell == Cell);
ASSERT(KeyBody->KeyControlBlock->ParentKcb->KeyHive == Hive);
ASSERT(KeyBody->KeyControlBlock->ParentKcb == ParentKcb);
- //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;
- }
+ ASSERT(KeyBody->KeyControlBlock->ParentKcb->KcbMaxNameLen ==
KeyNode->MaxNameLen);
/* Update the timestamp */
KeQuerySystemTime(&TimeStamp);