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

Do not recalculate string length in error_string #27995

Merged
merged 1 commit into from
Aug 25, 2015

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Aug 25, 2015

According to https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx:

If the function succeeds, the return value is the number of TCHARs stored in the output buffer,
excluding the terminating null character.

Completely untested… since I have no Windows machine or anything of a sort to test this on.

r? @aturon

According to https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx:

> If the function succeeds, the return value is the number of TCHARs stored in the output buffer,
> excluding the terminating null character.
@alexcrichton
Copy link
Member

@bors: r+ c4c533a

bors added a commit that referenced this pull request Aug 25, 2015
According to https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx:

> If the function succeeds, the return value is the number of TCHARs stored in the output buffer,
> excluding the terminating null character.

_**Completely untested**_… since I have no Windows machine or anything of a sort to test this on.

r? @aturon
@bors
Copy link
Contributor

bors commented Aug 25, 2015

⌛ Testing commit c4c533a with merge b339f38...

@bors bors merged commit c4c533a into rust-lang:master Aug 25, 2015
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

Successfully merging this pull request may close these issues.

None yet

4 participants