mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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;
|
_SEH2_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Quit:
|
||||||
/* If CmUnloadKey() failed we need to unlock registry ourselves */
|
/* If CmUnloadKey() failed we need to unlock registry ourselves */
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
@ -1969,7 +1970,6 @@ NtUnloadKey2(IN POBJECT_ATTRIBUTES TargetKey,
|
||||||
CmpUnlockRegistry();
|
CmpUnlockRegistry();
|
||||||
}
|
}
|
||||||
|
|
||||||
Quit:
|
|
||||||
/* Dereference the key */
|
/* Dereference the key */
|
||||||
ObDereferenceObject(KeyBody);
|
ObDereferenceObject(KeyBody);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue