- DBGKD_WAIT_STATE_CHANGE64 is used in KD protocol 5, not number 6 that we use. Proto...
[reactos.git] / reactos / lib / cmlib / cminit.c
index 80f2893..59b3843 100644 (file)
@@ -82,7 +82,10 @@ CmpPrepareIndexOfKeys(
       for (i = 0; i < IndexCell->Count; i++)
       {
          PCM_KEY_INDEX SubIndexCell = HvGetCell(RegistryHive, IndexCell->List[i]);
-         CmpPrepareIndexOfKeys(RegistryHive, SubIndexCell);
+         if (SubIndexCell->Signature == CM_KEY_NODE_SIGNATURE)
+            CmpPrepareKey(RegistryHive, (PCM_KEY_NODE)SubIndexCell);
+         else
+            CmpPrepareIndexOfKeys(RegistryHive, SubIndexCell);
       }
    }
    else if (IndexCell->Signature == CM_KEY_FAST_LEAF ||