Revert ntoskrnl/cm/regobj.c back to revision 14017

svn path=/trunk/; revision=15039
This commit is contained in:
Hervé Poussineau 2005-05-06 11:53:35 +00:00
parent 5ff8364d66
commit 71b3a2ede3

View file

@ -91,7 +91,7 @@ CmiObjectParse(PVOID ParsedObject,
{ {
ExReleaseResourceLite(&CmiRegistryLock); ExReleaseResourceLite(&CmiRegistryLock);
KeLeaveCriticalRegion(); KeLeaveCriticalRegion();
ExFreePool(KeyName.Buffer); RtlFreeUnicodeString(&KeyName);
return Status; return Status;
} }
if (FoundObject == NULL) if (FoundObject == NULL)
@ -107,7 +107,7 @@ CmiObjectParse(PVOID ParsedObject,
{ {
ExReleaseResourceLite(&CmiRegistryLock); ExReleaseResourceLite(&CmiRegistryLock);
KeLeaveCriticalRegion(); KeLeaveCriticalRegion();
ExFreePool(KeyName.Buffer); RtlFreeUnicodeString(&KeyName);
return(STATUS_UNSUCCESSFUL); return(STATUS_UNSUCCESSFUL);
} }
@ -140,7 +140,7 @@ CmiObjectParse(PVOID ParsedObject,
wcscat(TargetPath.Buffer, EndPtr); wcscat(TargetPath.Buffer, EndPtr);
} }
ExFreePool(FullPath->Buffer); RtlFreeUnicodeString(FullPath);
RtlFreeUnicodeString(&LinkPath); RtlFreeUnicodeString(&LinkPath);
FullPath->Length = TargetPath.Length; FullPath->Length = TargetPath.Length;
FullPath->MaximumLength = TargetPath.MaximumLength; FullPath->MaximumLength = TargetPath.MaximumLength;
@ -153,7 +153,7 @@ CmiObjectParse(PVOID ParsedObject,
*NextObject = NULL; *NextObject = NULL;
ExFreePool(KeyName.Buffer); RtlFreeUnicodeString(&KeyName);
return(STATUS_REPARSE); return(STATUS_REPARSE);
} }
} }
@ -173,7 +173,7 @@ CmiObjectParse(PVOID ParsedObject,
{ {
ExReleaseResourceLite(&CmiRegistryLock); ExReleaseResourceLite(&CmiRegistryLock);
KeLeaveCriticalRegion(); KeLeaveCriticalRegion();
ExFreePool(KeyName.Buffer); RtlFreeUnicodeString(&KeyName);
return(Status); return(Status);
} }
/* Add the keep-alive reference */ /* Add the keep-alive reference */
@ -224,8 +224,8 @@ CmiObjectParse(PVOID ParsedObject,
wcscat(TargetPath.Buffer, EndPtr); wcscat(TargetPath.Buffer, EndPtr);
} }
ExFreePool(FullPath->Buffer); RtlFreeUnicodeString(FullPath);
ExFreePool(LinkPath.Buffer); RtlFreeUnicodeString(&LinkPath);
FullPath->Length = TargetPath.Length; FullPath->Length = TargetPath.Length;
FullPath->MaximumLength = TargetPath.MaximumLength; FullPath->MaximumLength = TargetPath.MaximumLength;
FullPath->Buffer = TargetPath.Buffer; FullPath->Buffer = TargetPath.Buffer;
@ -237,7 +237,7 @@ CmiObjectParse(PVOID ParsedObject,
*NextObject = NULL; *NextObject = NULL;
ExFreePool(KeyName.Buffer); RtlFreeUnicodeString(&KeyName);
return(STATUS_REPARSE); return(STATUS_REPARSE);
} }
} }
@ -258,7 +258,7 @@ CmiObjectParse(PVOID ParsedObject,
*NextObject = FoundObject; *NextObject = FoundObject;
ExFreePool(KeyName.Buffer); RtlFreeUnicodeString(&KeyName);
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }