diff --git a/reactos/drivers/ksfilter/ks/irp.c b/reactos/drivers/ksfilter/ks/irp.c index e542273a748..cf33e16a20f 100644 --- a/reactos/drivers/ksfilter/ks/irp.c +++ b/reactos/drivers/ksfilter/ks/irp.c @@ -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;