summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b7f9c94)
svn path=/trunk/; revision=21791
if (InputCount != 0)
{
if (ClassDeviceExtension->InputCount + InputCount > ClassDeviceExtension->DriverExtension->DataQueueSize)
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;
ReadSize = ClassDeviceExtension->DriverExtension->DataQueueSize - ClassDeviceExtension->InputCount;
else
ReadSize = 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.
/*
* Move the input data from the port data queue to our class data
* queue.
if (InputCount != 0)
{
if (ClassDeviceExtension->InputCount + InputCount > ClassDeviceExtension->DriverExtension->DataQueueSize)
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;
ReadSize = ClassDeviceExtension->DriverExtension->DataQueueSize - ClassDeviceExtension->InputCount;
else
ReadSize = 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.
/*
* Move the input data from the port data queue to our class data
* queue.