mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
Do not remove an entry from the parent for twice.
svn path=/trunk/; revision=14764
This commit is contained in:
parent
ff121124b1
commit
493afd1118
|
@ -221,7 +221,11 @@ ObpRemoveEntryDirectory(POBJECT_HEADER Header)
|
||||||
DPRINT("ObpRemoveEntryDirectory(Header %x)\n",Header);
|
DPRINT("ObpRemoveEntryDirectory(Header %x)\n",Header);
|
||||||
|
|
||||||
KeAcquireSpinLock(&(Header->Parent->Lock),&oldlvl);
|
KeAcquireSpinLock(&(Header->Parent->Lock),&oldlvl);
|
||||||
|
if (Header->Entry.Flink && Header->Entry.Blink)
|
||||||
|
{
|
||||||
RemoveEntryList(&(Header->Entry));
|
RemoveEntryList(&(Header->Entry));
|
||||||
|
Header->Entry.Flink = Header->Entry.Blink = NULL;
|
||||||
|
}
|
||||||
KeReleaseSpinLock(&(Header->Parent->Lock),oldlvl);
|
KeReleaseSpinLock(&(Header->Parent->Lock),oldlvl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue