Author: mjmartin
Date: Sun Jan 10 10:03:53 2010
New Revision: 45022
URL: http://svn.reactos.org/svn/reactos?rev=45022&view=rev
Log:
[usb/usbehci]
- StartDevice: Remove ASSERT for unhanded resource types.
- Add case for CmResourceTypeDevicePrivate, and do nothing for it for now, will fix later if needed.
- Fixes crash on windows.
Modified:
trunk/reactos/drivers/usb/usbehci/fdo.c
Modified: trunk/reactos/drivers/usb/usbehci/fdo.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbehci/fdo.c?…
==============================================================================
--- trunk/reactos/drivers/usb/usbehci/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbehci/fdo.c [iso-8859-1] Sun Jan 10 10:03:53 2010
@@ -520,10 +520,15 @@
DPRINT("Dma Port: %d\n", resource->u.Dma.Port);
break;
}
+ case CmResourceTypeDevicePrivate:
+ {
+ /* Windows does this. */
+ DPRINT1("CmResourceTypeDevicePrivate not handled\n");
+ break;
+ }
default:
{
- DPRINT1("PNP Manager gave invalid resource type!! Notify Developers!\n");
- ASSERT(FALSE);
+ DPRINT1("PNP Manager gave resource type not handled!! Notify Developers!\n");
break;
}
}
Author: cgutman
Date: Sat Jan 9 16:49:39 2010
New Revision: 45015
URL: http://svn.reactos.org/svn/reactos?rev=45015&view=rev
Log:
- Store the address file handle in the IOSB
- MSAFD relies on this behavior to store the address file handle
Modified:
branches/aicom-network-branch/drivers/network/afd/afd/bind.c
Modified: branches/aicom-network-branch/drivers/network/afd/afd/bind.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/drivers/ne…
==============================================================================
--- branches/aicom-network-branch/drivers/network/afd/afd/bind.c [iso-8859-1] (original)
+++ branches/aicom-network-branch/drivers/network/afd/afd/bind.c [iso-8859-1] Sat Jan 9 16:49:39 2010
@@ -101,6 +101,7 @@
if (NT_SUCCESS(Status))
FCB->State = SOCKET_STATE_BOUND;
- return UnlockAndMaybeComplete( FCB, Status, Irp, 0 );
+ /* MSAFD relies on us returning the address file handle in the IOSB */
+ return UnlockAndMaybeComplete( FCB, Status, Irp, (ULONG_PTR)FCB->AddressFile.Handle );
}