Author: janderwald
Date: Tue Aug 11 11:20:15 2009
New Revision: 42607
URL:
http://svn.reactos.org/svn/reactos?rev=42607&view=rev
Log:
[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
Modified:
trunk/reactos/drivers/ksfilter/ks/irp.c
Modified: trunk/reactos/drivers/ksfilter/ks/irp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/irp.c?…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/irp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/irp.c [iso-8859-1] Tue Aug 11 11:20:15 2009
@@ -1075,7 +1075,7 @@
KIRQL OldLevel;
PLIST_ENTRY SrcEntry;
PIRP Irp;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
if (!DestinationLock)
{
@@ -1111,7 +1111,7 @@
SrcEntry = SrcEntry->Blink;
}
- if (SrcEntry == DestinationList)
+ if (SrcEntry == SourceList)
{
/* eof list reached */
break;