PATCH: Arty's fixes based on CMake branch testing. Just the NPFS code.
See issue #6103 for more details.

svn path=/trunk/; revision=51320
This commit is contained in:
Eric Kohl 2011-04-11 17:52:06 +00:00
parent 0669ecfaf3
commit 0dda24faea

View file

@ -937,10 +937,10 @@ NpfsClose(PDEVICE_OBJECT DeviceObject,
if (IsListEmpty(&Fcb->ServerCcbListHead) && if (IsListEmpty(&Fcb->ServerCcbListHead) &&
IsListEmpty(&Fcb->ClientCcbListHead)) IsListEmpty(&Fcb->ClientCcbListHead))
{ {
RtlFreeUnicodeString(&Fcb->PipeName);
KeLockMutex(&Vcb->PipeListLock); KeLockMutex(&Vcb->PipeListLock);
RemoveEntryList(&Fcb->PipeListEntry); RemoveEntryList(&Fcb->PipeListEntry);
KeUnlockMutex(&Vcb->PipeListLock); KeUnlockMutex(&Vcb->PipeListLock);
RtlFreeUnicodeString(&Fcb->PipeName);
ExFreePool(Fcb); ExFreePool(Fcb);
FileObject->FsContext = NULL; FileObject->FsContext = NULL;
} }