[ros-diffs] [hbirr] 14764: Do not remove an entry from the parent
for twice.
hbirr at svn.reactos.com
hbirr at svn.reactos.com
Sat Apr 23 12:14:32 CEST 2005
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);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050423/e0c4464a/attachment.html
More information about the Ros-diffs
mailing list