From 71b3a2ede318020c60f016519ae1be60f933349e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 6 May 2005 11:53:35 +0000 Subject: [PATCH] Revert ntoskrnl/cm/regobj.c back to revision 14017 svn path=/trunk/; revision=15039 --- reactos/ntoskrnl/cm/regobj.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/reactos/ntoskrnl/cm/regobj.c b/reactos/ntoskrnl/cm/regobj.c index 79d5016f2b1..4a5ffa8bc04 100644 --- a/reactos/ntoskrnl/cm/regobj.c +++ b/reactos/ntoskrnl/cm/regobj.c @@ -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); }