diff --git a/reactos/ntoskrnl/cm/ntfunc.c b/reactos/ntoskrnl/cm/ntfunc.c index 99fded25c7f..5c7e05d3d73 100644 --- a/reactos/ntoskrnl/cm/ntfunc.c +++ b/reactos/ntoskrnl/cm/ntfunc.c @@ -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;