Author: hpoussin
Date: Sat Mar 3 20:39:51 2012
New Revision: 55972
URL: http://svn.reactos.org/svn/reactos?rev=55972&view=rev
Log:
Revert most of r53392 effects.
When IoReportDetectedDevice() creates a PDO, the PDO is in no way related to the DriverObject given to the function.
Driver calling IoReportDetectedDevice() should then ensure that it attachs a FDO on top of this PDO.
Modified:
trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnprepo…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c [iso-8859-1] Sat Mar 3 20:39:51 2012
@@ -207,7 +207,7 @@
{
/* Create the PDO */
Status = PnpRootCreateDevice(&ServiceName,
- DriverObject,
+ NULL,
&Pdo,
NULL);
if (!NT_SUCCESS(Status))
Author: cgutman
Date: Sat Mar 3 20:17:29 2012
New Revision: 55971
URL: http://svn.reactos.org/svn/reactos?rev=55971&view=rev
Log:
[LIBUSB]
- Don't assert that the clear stall will complete successfully since it may be sent for a removal
- Fixes removal surprise removal of HID devices
Modified:
trunk/reactos/lib/drivers/libusb/hub_controller.cpp
Modified: trunk/reactos/lib/drivers/libusb/hub_controller.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/libusb/hub_con…
==============================================================================
--- trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] Sat Mar 3 20:17:29 2012
@@ -1802,8 +1802,8 @@
//
// reset data toggle
//
- ASSERT(NT_SUCCESS(Status));
- EndpointDescriptor->DataToggle = 0x0;
+ if (NT_SUCCESS(Status))
+ EndpointDescriptor->DataToggle = 0x0;
//
// done