Status = STATUS_OBJECT_NAME_NOT_FOUND;
goto Cleanup;
}
+
+ /* Lock the registry */
+ CmpLockRegistry();
/* Create the key */
Status = CmpDoCreate(Parent->KeyControlBlock->KeyHive,
/* Add the keep-alive reference */
ObReferenceObject(KeyObject);
+
+ /* Unlock registry */
+ CmpUnlockRegistry();
/* Force a lazy flush */
CmpLazyFlush();