From 28ab30ea8d7499a762194942ab5075d8f347b68d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Wed, 3 May 2006 14:42:28 +0000 Subject: [PATCH 1/1] Don't call IoRaiseHardError at DISPATCH_LEVEL svn path=/trunk/; revision=21791 --- reactos/drivers/input/kbdclass/kbdclass.c | 13 ++++++------- reactos/drivers/input/mouclass/mouclass.c | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/reactos/drivers/input/kbdclass/kbdclass.c b/reactos/drivers/input/kbdclass/kbdclass.c index 6aff63713b0..49b76b097b6 100644 --- a/reactos/drivers/input/kbdclass/kbdclass.c +++ b/reactos/drivers/input/kbdclass/kbdclass.c @@ -495,17 +495,16 @@ ClassCallback( if (InputCount != 0) { if (ClassDeviceExtension->InputCount + InputCount > ClassDeviceExtension->DriverExtension->DataQueueSize) + { + /* + * We're exceeding the buffer, and data will be thrown away... + * FIXME: What could we do, as we are at DISPATCH_LEVEL? + */ ReadSize = ClassDeviceExtension->DriverExtension->DataQueueSize - ClassDeviceExtension->InputCount; + } else ReadSize = InputCount; - /* - * If we exceed the buffer, data gets thrown away... - * Try at least to display a dialog - */ - if (Irp != NULL) - IoRaiseHardError(Irp, NULL, ClassDeviceObject); - /* * Move the input data from the port data queue to our class data * queue. diff --git a/reactos/drivers/input/mouclass/mouclass.c b/reactos/drivers/input/mouclass/mouclass.c index c94fb3e2f62..d566f43f403 100644 --- a/reactos/drivers/input/mouclass/mouclass.c +++ b/reactos/drivers/input/mouclass/mouclass.c @@ -471,17 +471,16 @@ ClassCallback( if (InputCount != 0) { if (ClassDeviceExtension->InputCount + InputCount > ClassDeviceExtension->DriverExtension->DataQueueSize) + { + /* + * We're exceeding the buffer, and data will be thrown away... + * FIXME: What could we do, as we are at DISPATCH_LEVEL? + */ ReadSize = ClassDeviceExtension->DriverExtension->DataQueueSize - ClassDeviceExtension->InputCount; + } else ReadSize = InputCount; - /* - * If we exceed the buffer, data gets thrown away... - * Try at least to display a dialog - */ - if (Irp != NULL) - IoRaiseHardError(Irp, NULL, ClassDeviceObject); - /* * Move the input data from the port data queue to our class data * queue. -- 2.17.1