mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[NTOS]
- Avoid removing list entry if the list is empty in IopUnQueueIrpFromThread CORE-8419 svn path=/trunk/; revision=66207
This commit is contained in:
parent
a5667eedbc
commit
5a1de25f17
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ VOID
|
||||||
IopUnQueueIrpFromThread(IN PIRP Irp)
|
IopUnQueueIrpFromThread(IN PIRP Irp)
|
||||||
{
|
{
|
||||||
/* Remove it from the list and reset it */
|
/* Remove it from the list and reset it */
|
||||||
|
if (IsListEmpty(&Irp->ThreadListEntry))
|
||||||
|
return;
|
||||||
RemoveEntryList(&Irp->ThreadListEntry);
|
RemoveEntryList(&Irp->ThreadListEntry);
|
||||||
InitializeListHead(&Irp->ThreadListEntry);
|
InitializeListHead(&Irp->ThreadListEntry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue