Table of contents
TOC
Collapse the table of content
Expand the table of content

C28131

Last Updated: 11/22/2016

warning C28131: The DriverEntry routine should save a copy of the argument, not the pointer, because the I/O Manager frees the buffer

The driver's DriverEntry routine is saving a copy of the pointer to the buffer instead of saving a copy of the buffer. Because the buffer is freed when the DriverEntry routine returns, the pointer to the buffer will soon be invalid.

Send comments about this topic to Microsoft

© 2017 Microsoft