Console-Docs icon indicating copy to clipboard operation
Console-Docs copied to clipboard

WriteConsole parameter annotation is wrong

Open jay opened this issue 1 year ago • 0 comments

WriteConsole parameter lpNumberOfCharsWritten has the annotation _Out_opt_ (out optional) in the documentation but curl/curl#12131 reports that the parameter is mandatory for Windows XP. I checked the Windows 7 SDK and the parameter is annotated as mandatory __out. However, I wrote the code where curl calls WriteConsole in Windows 7 and the function does not fail when the parameter is NULL. So at some earlier point it was not optional.

Reported-by: [email protected]

/cc @lordmulder


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

jay avatar Oct 15 '23 18:10 jay