Author: hpoussin
Date: Wed May 3 18:42:28 2006
New Revision: 21791
URL: http://svn.reactos.ru/svn/reactos?rev=21791&view=rev
Log:
Don't call IoRaiseHardError at DISPATCH_LEVEL
Modified:
trunk/reactos/drivers/input/kbdclass/kbdclass.c
trunk/reactos/drivers/input/mouclass/mouclass.c
Modified: trunk/reactos/drivers/input/kbdclass/kbdclass.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/input/kbdclass/kbdc…
==============================================================================
--- trunk/reactos/drivers/input/kbdclass/kbdclass.c (original)
+++ trunk/reactos/drivers/input/kbdclass/kbdclass.c Wed May 3 18:42:28 2006
@@ -495,16 +495,15 @@
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
Modified: trunk/reactos/drivers/input/mouclass/mouclass.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/input/mouclass/mouc…
==============================================================================
--- trunk/reactos/drivers/input/mouclass/mouclass.c (original)
+++ trunk/reactos/drivers/input/mouclass/mouclass.c Wed May 3 18:42:28 2006
@@ -471,16 +471,15 @@
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