[NPFS]
authorEric Kohl <eric.kohl@reactos.org>
Mon, 11 Apr 2011 17:52:06 +0000 (17:52 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 11 Apr 2011 17:52:06 +0000 (17:52 +0000)
PATCH: Arty's fixes based on CMake branch testing. Just the NPFS code.
See issue #6103 for more details.

svn path=/trunk/; revision=51320

reactos/drivers/filesystems/npfs/create.c

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