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

deviceinfo: Fix character encoding for GetComputerName. #669

Merged
merged 2 commits into from
Jun 29, 2017

Conversation

ben-clayton
Copy link
Contributor

Should be UTF8.

Fixes: #651

@ben-clayton ben-clayton requested a review from AWoloszyn June 29, 2017 14:00
Copy link
Contributor

@AWoloszyn AWoloszyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment

if (!GetComputerNameW(host_wide, &size)) {
snprintf(gContext.mError, sizeof(gContext.mError),
"Couldn't get host name: %d", GetLastError());
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want an early-return here. If we host_wide is empty, or garbage, I would be worried about what WideCharToMultiByte would return.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, that's a real mistake. Thanks for spotting.

@ben-clayton
Copy link
Contributor Author

Done

@ben-clayton ben-clayton merged commit 2303782 into google:master Jun 29, 2017
@ben-clayton ben-clayton deleted the fix-utf-hostname branch June 29, 2017 17:01
RenfengLiu pushed a commit to RenfengLiu/gapid that referenced this pull request Apr 23, 2020
* Fixed anc code cleanup for skeletal animation

Refs google#669

* Fix android build
purvisa-at-google-com pushed a commit that referenced this pull request Sep 29, 2022
In an ANGLE AGI trace, the thumbnail/resources of the containing
OpenGL group and the OpenGL drawcall displayed out-of-date
data. Updated these representations at query-time to reflect the
correct Vulkan state.

Test: Manual
purvisa-at-google-com pushed a commit that referenced this pull request Sep 29, 2022
In an ANGLE AGI trace, the thumbnail/resources of the containing
OpenGL group and the OpenGL glClear displayed incorrect info.
Created aliased representations for them to the correct
thumbnail/resource data.

Test: Manual
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.

2 participants