Console-Docs
Console-Docs copied to clipboard
WriteConsole parameter annotation is wrong
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.
- ID: c5217790-3d20-b461-f625-955cc24c60ad
- Version Independent ID: 5fddd692-19bb-414b-a83c-f46978575b1f
- Content: WriteConsole function - Windows Console
- Content Source: docs/writeconsole.md
- Product: windows
- Technology: windows-console
- GitHub Login: @miniksa
- Microsoft Alias: miniksa