-
Notifications
You must be signed in to change notification settings - Fork 326
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
Conversation
Should be UTF8. Fixes: google#651
There was a problem hiding this 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()); | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Done |
* Fixed anc code cleanup for skeletal animation Refs google#669 * Fix android build
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
Should be UTF8.
Fixes: #651