Don't call IoRaiseHardError at DISPATCH_LEVEL

svn path=/trunk/; revision=21791
This commit is contained in:
Hervé Poussineau
2006-05-03 14:42:28 +00:00
parent b7f9c94930
commit 28ab30ea8d
2 changed files with 12 additions and 14 deletions
+6 -7
View File
@@ -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.
+6 -7
View File
@@ -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.