- Only dereference the KCB if we know it exists

- Fix for Coverity error CID: 279

svn path=/trunk/; revision=36486
This commit is contained in:
Stefan Ginsberg 2008-09-24 16:19:52 +00:00
parent d82ca9895d
commit e57cfa2826

View file

@ -71,11 +71,10 @@ CmpDeleteKeyObject(PVOID DeletedObject)
{
/* Delist the key */
DelistKeyBodyFromKCB(KeyBody, FALSE);
/* Dereference the KCB */
CmpDelayDerefKeyControlBlock(Kcb);
}
/* Dereference the KCB */
CmpDelayDerefKeyControlBlock(Kcb);
}
/* Release the registry lock */