mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
Revert ntoskrnl/cm/regobj.c back to revision 14017
svn path=/trunk/; revision=15039
This commit is contained in:
parent
5ff8364d66
commit
71b3a2ede3
1 changed files with 9 additions and 9 deletions
|
@ -91,7 +91,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
{
|
||||
ExReleaseResourceLite(&CmiRegistryLock);
|
||||
KeLeaveCriticalRegion();
|
||||
ExFreePool(KeyName.Buffer);
|
||||
RtlFreeUnicodeString(&KeyName);
|
||||
return Status;
|
||||
}
|
||||
if (FoundObject == NULL)
|
||||
|
@ -107,7 +107,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
{
|
||||
ExReleaseResourceLite(&CmiRegistryLock);
|
||||
KeLeaveCriticalRegion();
|
||||
ExFreePool(KeyName.Buffer);
|
||||
RtlFreeUnicodeString(&KeyName);
|
||||
return(STATUS_UNSUCCESSFUL);
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
wcscat(TargetPath.Buffer, EndPtr);
|
||||
}
|
||||
|
||||
ExFreePool(FullPath->Buffer);
|
||||
RtlFreeUnicodeString(FullPath);
|
||||
RtlFreeUnicodeString(&LinkPath);
|
||||
FullPath->Length = TargetPath.Length;
|
||||
FullPath->MaximumLength = TargetPath.MaximumLength;
|
||||
|
@ -153,7 +153,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
|
||||
*NextObject = NULL;
|
||||
|
||||
ExFreePool(KeyName.Buffer);
|
||||
RtlFreeUnicodeString(&KeyName);
|
||||
return(STATUS_REPARSE);
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
{
|
||||
ExReleaseResourceLite(&CmiRegistryLock);
|
||||
KeLeaveCriticalRegion();
|
||||
ExFreePool(KeyName.Buffer);
|
||||
RtlFreeUnicodeString(&KeyName);
|
||||
return(Status);
|
||||
}
|
||||
/* Add the keep-alive reference */
|
||||
|
@ -224,8 +224,8 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
wcscat(TargetPath.Buffer, EndPtr);
|
||||
}
|
||||
|
||||
ExFreePool(FullPath->Buffer);
|
||||
ExFreePool(LinkPath.Buffer);
|
||||
RtlFreeUnicodeString(FullPath);
|
||||
RtlFreeUnicodeString(&LinkPath);
|
||||
FullPath->Length = TargetPath.Length;
|
||||
FullPath->MaximumLength = TargetPath.MaximumLength;
|
||||
FullPath->Buffer = TargetPath.Buffer;
|
||||
|
@ -237,7 +237,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
|
||||
*NextObject = NULL;
|
||||
|
||||
ExFreePool(KeyName.Buffer);
|
||||
RtlFreeUnicodeString(&KeyName);
|
||||
return(STATUS_REPARSE);
|
||||
}
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ CmiObjectParse(PVOID ParsedObject,
|
|||
|
||||
*NextObject = FoundObject;
|
||||
|
||||
ExFreePool(KeyName.Buffer);
|
||||
RtlFreeUnicodeString(&KeyName);
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue