Do not remove an entry from the parent for twice.
Modified: trunk/reactos/ntoskrnl/ob/namespc.c
_____
Modified: trunk/reactos/ntoskrnl/ob/namespc.c
--- trunk/reactos/ntoskrnl/ob/namespc.c 2005-04-23 10:11:37 UTC (rev
14763)
+++ trunk/reactos/ntoskrnl/ob/namespc.c 2005-04-23 10:14:29 UTC (rev
14764)
@@ -221,7 +221,11 @@
DPRINT("ObpRemoveEntryDirectory(Header %x)\n",Header);
KeAcquireSpinLock(&(Header->Parent->Lock),&oldlvl);
- RemoveEntryList(&(Header->Entry));
+ if (Header->Entry.Flink && Header->Entry.Blink)
+ {
+ RemoveEntryList(&(Header->Entry));
+ Header->Entry.Flink = Header->Entry.Blink = NULL;
+ }
KeReleaseSpinLock(&(Header->Parent->Lock),oldlvl);
}
Show replies by date