Author: cgutman
Date: Thu Jan 26 00:02:03 2012
New Revision: 55186
URL: http://svn.reactos.org/svn/reactos?rev=55186&view=rev
Log:
[USBHUB_NEW]
- Remove the hacky way of determining if a device connect occurred (prone to all sorts of race conditions) and just always create a device since the only reason we reset right now is for a device connect
Modified:
branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
URL: http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] Thu Jan 26 00:02:03 2012
@@ -402,13 +402,9 @@
}
//
- // Create the device object only if the port manipulation was started by a device connect
- //
- if (HubDeviceExtension->PortStatusChange[PortId-1].Status)
- {
- HubDeviceExtension->PortStatusChange[PortId-1].Status = 0;
- Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL);
- }
+ // This is a new device
+ //
+ Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL);
}
}
Author: fireball
Date: Wed Jan 25 22:09:49 2012
New Revision: 55184
URL: http://svn.reactos.org/svn/reactos?rev=55184&view=rev
Log:
- Better fix for the registry value bug introduced by Rafal. The string is guaranteed to be NULL terminated, however MaximumLength is off by one in some cases (more specifically in videoprt.c:131 two NULLs are being added by sizeof(Insert1) and sizeof(Insert2)).
See issue #6838 for more details.
Modified:
trunk/reactos/drivers/video/videoprt/videoprt.c
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/vid…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/videoprt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/videoprt.c [iso-8859-1] Wed Jan 25 22:09:49 2012
@@ -492,7 +492,7 @@
DeviceVideoBuffer,
REG_SZ,
DeviceExtension->RegistryPath.Buffer,
- DeviceExtension->RegistryPath.Length);
+ DeviceExtension->RegistryPath.Length + sizeof(UNICODE_NULL));
RtlWriteRegistryValue(
RTL_REGISTRY_DEVICEMAP,