News for hackers. Stuff that matters.
Re:Microsoft_craziness.h (2018) by lkey on Wednesday November 24, 2021 @12:02PM (#29332184)
[in, out, optional] lpcbData (aka &length)

A pointer to a variable that specifies the size of the buffer pointed to by the lpData parameter, in bytes. When the function returns, this variable contains the size of the data copied to lpData.

In other words, it's rewritten to be the actual length before it's incremented for null termination.

There are no comments on this comment yet.