Fixe use of memory after it had been free'd.

svn path=/trunk/; revision=13272
This commit is contained in:
Mike Nordell 2005-01-25 16:38:18 +00:00
parent b0fc9bcff6
commit c819a16600

View file

@ -119,8 +119,8 @@ NtCreateKey(OUT PHANDLE KeyHandle,
if (End != NULL)
{
ObDereferenceObject(Object);
RtlFreeUnicodeString(&RemainingPath);
DPRINT1("NtCreateKey() can't create trees! (found \'\\\' in remaining path: \"%wZ\"!)\n", &RemainingPath);
RtlFreeUnicodeString(&RemainingPath);
return STATUS_OBJECT_NAME_NOT_FOUND;
}