mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 07:40:09 +08:00
[NTOS:CM] Properly unlock registry on failure in NtUnloadKey2
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user