mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[NTOS:CM] Properly unlock registry on failure in NtUnloadKey2
This commit is contained in:
parent
da64119fe6
commit
4fb2fdbac6
1 changed files with 1 additions and 1 deletions
|
@ -1953,6 +1953,7 @@ NtUnloadKey2(IN POBJECT_ATTRIBUTES TargetKey,
|
|||
_SEH2_END;
|
||||
}
|
||||
|
||||
Quit:
|
||||
/* If CmUnloadKey() failed we need to unlock registry ourselves */
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -1969,7 +1970,6 @@ NtUnloadKey2(IN POBJECT_ATTRIBUTES TargetKey,
|
|||
CmpUnlockRegistry();
|
||||
}
|
||||
|
||||
Quit:
|
||||
/* Dereference the key */
|
||||
ObDereferenceObject(KeyBody);
|
||||
|
||||
|
|
Loading…
Reference in a new issue