mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Don't call IoRaiseHardError at DISPATCH_LEVEL
svn path=/trunk/; revision=21791
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user