Author: hbelusca Date: Sun May 8 14:53:14 2016 New Revision: 71287
URL: http://svn.reactos.org/svn/reactos?rev=71287&view=rev Log: [KSFILTER]: We may need to check the result of KspScanBus call here. To see whether we need to do that, add an assert. If hit then we know KspScanBus can fail and some proper failure code will be needed.
Modified: trunk/reactos/drivers/ksfilter/ks/swenum.c
Modified: trunk/reactos/drivers/ksfilter/ks/swenum.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/swenum.... ============================================================================== --- trunk/reactos/drivers/ksfilter/ks/swenum.c [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/swenum.c [iso-8859-1] Sun May 8 14:53:14 2016 @@ -1124,7 +1124,9 @@ }
/* now scan the bus */ - KspScanBus(Context->BusDeviceExtension); + Status = KspScanBus(Context->BusDeviceExtension); + // FIXME: We may need to check for success here, and properly fail... + ASSERT(NT_SUCCESS(Status));
/* acquire device entry lock */ KeAcquireSpinLock(&Context->BusDeviceExtension->Lock, &OldLevel);