Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 972 Bytes

28152-do-device-initializing-flag-not-cleared.md

File metadata and controls

28 lines (18 loc) · 972 Bytes
title description keywords ms.date f1_keywords
C28152 Warning
Warning C28152 The return from an AddDevice-like function unexpectedly DO_DEVICE_INITIALIZING.
warnings listed WDK PREfast for Drivers
errors listed WDK PREfast for Drivers
04/20/2017
C28152

C28152

warning C28152: The return from an AddDevice-like function unexpectedly DO_DEVICE_INITIALIZING

The driver has returned from its AddDevice routine, or a similar utility routine, but the DO_DEVICE_INITIALIZING bit of the Flags word (DeviceObject->Flags) in the DeviceObject routine is not cleared.

The AddDevice routine must contain code similar to the following to clear the DO_DEVICE_INITIALIZING flag.

FunctionalDeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;

For more information about AddDevice routines, see AddDevice Routines in Function or Filter Drivers