From 943d65a922a8bcfbaf596e2bb617e17cbab75ce7 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 24 Jun 2015 10:13:15 +0000 Subject: [PATCH] [HIDCLASS] - fix a bug svn path=/trunk/; revision=68249 --- reactos/drivers/hid/hidclass/pdo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/hid/hidclass/pdo.c b/reactos/drivers/hid/hidclass/pdo.c index 876712e7af9..4549dc2fbcf 100644 --- a/reactos/drivers/hid/hidclass/pdo.c +++ b/reactos/drivers/hid/hidclass/pdo.c @@ -636,7 +636,7 @@ HidClassPDO_CreatePDO( 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 @@ HidClassPDO_CreatePDO( // 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 @@ HidClassPDO_CreatePDO( // Index++; - } while(Index < FDODeviceExtension->Common.DeviceDescription.CollectionDescLength); + } //