mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[KS]
- Fix uninitialized return value when the list is empty - Fix a horrible bug where the end of the list wasnt checked by the source list but the destination list - Found by Amine Khaldi svn path=/trunk/; revision=42607
This commit is contained in:
parent
85543388b1
commit
fad9ff3860
1 changed files with 2 additions and 2 deletions
|
@ -1075,7 +1075,7 @@ KsMoveIrpsOnCancelableQueue(
|
|||
KIRQL OldLevel;
|
||||
PLIST_ENTRY SrcEntry;
|
||||
PIRP Irp;
|
||||
NTSTATUS Status;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
if (!DestinationLock)
|
||||
{
|
||||
|
@ -1111,7 +1111,7 @@ KsMoveIrpsOnCancelableQueue(
|
|||
SrcEntry = SrcEntry->Blink;
|
||||
}
|
||||
|
||||
if (SrcEntry == DestinationList)
|
||||
if (SrcEntry == SourceList)
|
||||
{
|
||||
/* eof list reached */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue