Author: janderwald
Date: Thu Apr 23 14:30:57 2009
New Revision: 40663
URL:
http://svn.reactos.org/svn/reactos?rev=40663&view=rev
Log:
- Once a create handler indicates success, leave creation handler
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] Thu Apr 23 14:30:57 2009
@@ -746,6 +746,15 @@
/* set object create item */
KSCREATE_ITEM_IRP_STORAGE(Irp) =
&DeviceHeader->ItemList[Index].CreateItem;
Status = DeviceHeader->ItemList[Index].CreateItem.Create(DeviceObject,
Irp);
+
+ /* FIXME IoRegisterDeviceInterface does not support reference strings */
+ /* FIXME Check the irp target with the create item's object class */
+ if (NT_SUCCESS(Status))
+ {
+ /* release lock */
+ KeReleaseSpinLock(&DeviceHeader->ItemListLock, OldLevel);
+ return Status;
+ }
}
}