Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetConsoleTitle documented behavior does not match what it does #273

Open
DiaperGlu opened this issue Jul 22, 2022 · 0 comments
Open

GetConsoleTitle documented behavior does not match what it does #273

DiaperGlu opened this issue Jul 22, 2022 · 0 comments

Comments

@DiaperGlu
Copy link

[Enter feedback here]
GetConsoleTitleA returns 0 if the returned string does not fit in the buffer. (This means you can't pass in an empty buffer to get the length of the string.)
GetConsoleTitleA returns the length of the string not including the null terminator if it exactly fits in the buffer without
the null terminator. (This means there is no null terminator at the end of the string for this case.)
GetConsoleTitleA returns the length of the string not including the null terminator if the null terminator does fit
into the buffer.

Behavior tested on Windows 10 Home

Document Details

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant