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