Fixes the registry loop bug. No more bugchecks after exactly ten minutes. Do not try to insert an entry into a list it's already inserted into.

svn path=/trunk/; revision=29618
This commit is contained in:
Mike Nordell 2007-10-16 04:59:20 +00:00
parent ff0adc4b29
commit 48b968be9f

View file

@ -24,7 +24,6 @@
/* GLOBALS ******************************************************************/
extern POBJECT_TYPE CmpKeyObjectType;
extern LIST_ENTRY CmiKeyObjectListHead;
static BOOLEAN CmiRegistryInitialized = FALSE;
@ -332,7 +331,6 @@ NtCreateKey(OUT PHANDLE KeyHandle,
goto Cleanup;
}
InsertTailList(&CmiKeyObjectListHead, &KeyObject->ListEntry);
RtlCreateUnicodeString(&KeyObject->Name, Start);
KeyObject->KeyCell->Parent = KeyObject->ParentKey->KeyCellOffset;