From: Hervé Poussineau Date: Wed, 3 May 2006 14:42:28 +0000 (+0000) Subject: Don't call IoRaiseHardError at DISPATCH_LEVEL X-Git-Tag: ReactOS-0.3.0~151 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=28ab30ea8d7499a762194942ab5075d8f347b68d;hp=b7f9c94930868e6666b6d59d7c6b8ac2a01ad933 Don't call IoRaiseHardError at DISPATCH_LEVEL svn path=/trunk/; revision=21791 --- 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.