Author: janderwald
Date: Wed Jun 24 10:13:15 2015
New Revision: 68249
URL:
http://svn.reactos.org/svn/reactos?rev=68249&view=rev
Log:
[HIDCLASS]
- fix a bug
Modified:
trunk/reactos/drivers/hid/hidclass/pdo.c
Modified: trunk/reactos/drivers/hid/hidclass/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/hid/hidclass/pdo.c…
==============================================================================
--- trunk/reactos/drivers/hid/hidclass/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/hid/hidclass/pdo.c [iso-8859-1] Wed Jun 24 10:13:15 2015
@@ -636,7 +636,7 @@
OUT PDEVICE_RELATIONS *OutDeviceRelations)
{
PHIDCLASS_FDO_EXTENSION FDODeviceExtension;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
PDEVICE_OBJECT PDODeviceObject;
PHIDCLASS_PDO_DEVICE_EXTENSION PDODeviceExtension;
ULONG Index;
@@ -671,9 +671,9 @@
// let's create a PDO for top level collection
//
Index = 0;
- do
- {
- //
+ while (Index < FDODeviceExtension->Common.DeviceDescription.CollectionDescLength)
+ {
+ //
// let's create the device object
//
Status =
IoCreateDevice(FDODeviceExtension->Common.DriverExtension->DriverObject,
@@ -742,7 +742,7 @@
//
Index++;
- } while(Index <
FDODeviceExtension->Common.DeviceDescription.CollectionDescLength);
+ }
//