Set proper parent for registry keys.
Patch by theflash < theflash at sdf dot lonestar dot org >
CORE-7128 #resolve

svn path=/trunk/; revision=58875
This commit is contained in:
Sylvain Petreolle 2013-04-27 19:33:31 +00:00
parent 76a1dccfe2
commit 5ace783b87

View file

@ -294,7 +294,7 @@ CmiAddSubKey(
NewKeyCell->Flags = 0;
}
KeQuerySystemTime(&NewKeyCell->LastWriteTime);
NewKeyCell->Parent = HCELL_NIL;
NewKeyCell->Parent = ParentKeyCellOffset;
NewKeyCell->SubKeyCounts[Stable] = 0;
NewKeyCell->SubKeyCounts[Volatile] = 0;
NewKeyCell->SubKeyLists[Stable] = HCELL_NIL;