mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
- 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:
parent
d82ca9895d
commit
e57cfa2826
1 changed files with 3 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue