Skip to content

Fix docs for sourceString param in WindowsCreateString #2009

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

Open
wants to merge 1 commit into
base: docs
Choose a base branch
from

Conversation

Sergio0694
Copy link
Contributor

@Sergio0694 Sergio0694 commented May 1, 2025

This doesn't actually require to be null-terminated, and it was quite confusing.

See https://devblogs.microsoft.com/oldnewthing/20160615-00/?p=93675:

"WindowsCreateString creates an HSTRING from a UTF-16LE-encoded buffer and a specified length. The buffer does not require a terminating null."

Copy link

@Sergio0694 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

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

Successfully merging this pull request may close these issues.

2 participants