[NTOS:CM] Report key creation to the notify code

This commit is contained in:
Eric Kohl 2021-02-21 15:49:06 +01:00
parent 0c15f7d183
commit 9ff015f770

View file

@ -379,6 +379,12 @@ CmpDoCreateChild(IN PHHIVE Hive,
/* Now that the security descriptor is copied in the hive, we can free the original */
SeDeassignSecurity(&NewDescriptor);
if (NT_SUCCESS(Status))
{
/* Send notification to registered callbacks */
CmpReportNotify(Kcb, Hive, Kcb->KeyCell, REG_NOTIFY_CHANGE_NAME);
}
Quickie:
/* Check if we got here because of failure */
if (!NT_SUCCESS(Status))