title | description | keywords | ms.date | f1_keywords | |||
---|---|---|---|---|---|---|---|
C28143 Warning |
Warning C28143 A dispatch routine that calls IoMarkIrpPending must also return STATUS_PENDING. |
|
04/20/2017 |
|
warning C28143: A dispatch routine that calls IoMarkIrpPending must also return STATUS_PENDING
A dispatch routine that calls IoMarkIrpPending includes at least one path in which the driver returns a value other than STATUS_PENDING.
The following code example elicits this warning.
IoMarkIrpPending(Irp);
...
return STATUS_SUCCESS;
The following code example avoids this warning.
IoMarkIrpPending(Irp);
...
return STATUS_PENDING;