From 09f50240a39c15b130f21e3e6f323be2234541a7 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 20 Oct 2014 09:31:50 +0000 Subject: [PATCH 1/1] [FASTFAT] - Move FCB list removal to vfatDelFCBFromTable, since vfatAddFCBToTable does the insert. Fixes list corruption in vfatUpdateFCB. svn path=/trunk/; revision=64843 --- reactos/drivers/filesystems/fastfat/fcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/fastfat/fcb.c b/reactos/drivers/filesystems/fastfat/fcb.c index 9f104a28296..251821bcf59 100644 --- a/reactos/drivers/filesystems/fastfat/fcb.c +++ b/reactos/drivers/filesystems/fastfat/fcb.c @@ -199,6 +199,8 @@ vfatDelFCBFromTable( } entry->next = pFCB->Hash.next; } + + RemoveEntryList(&pFCB->FcbListEntry); } static @@ -302,7 +304,6 @@ vfatReleaseFCB( { ASSERT(pFCB->OpenHandleCount == 0); tmpFcb = pFCB->parentFcb; - RemoveEntryList (&pFCB->FcbListEntry); vfatDelFCBFromTable(pVCB, pFCB); vfatDestroyFCB(pFCB); } -- 2.17.1