Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 875 Bytes

28143-iomarkirppending-must-return-statuspending.md

File metadata and controls

38 lines (26 loc) · 875 Bytes
title description keywords ms.date f1_keywords
C28143 Warning
Warning C28143 A dispatch routine that calls IoMarkIrpPending must also return STATUS_PENDING.
warnings listed WDK PREfast for Drivers
errors listed WDK PREfast for Drivers
04/20/2017
C28143

C28143

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.

Example

The following code example elicits this warning.

IoMarkIrpPending(Irp);
...
return STATUS_SUCCESS;

The following code example avoids this warning.

IoMarkIrpPending(Irp);
...
return STATUS_PENDING;