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

util: Fix Windows API for default data directory with wide characters #1871

Merged

Conversation

cyrossignol
Copy link
Member

This fixes a missed *A() to *W() conversion (#1571) for the Windows API call that resolves the AppData directory for the default wallet data directory. It may solve crashes reported with v5.0.0 when the default data directory contains wide characters.

I think this is the last place we need this conversion. The remaining *A() API calls do not need to handle Unicode characters.

Copy link
Member

@jamescowens jamescowens left a comment

Choose a reason for hiding this comment

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

utACK. Will cherry-pick this to the hotfix branch once regression tested.

src/util.cpp Outdated Show resolved Hide resolved
Co-authored-by: div72 <60045611+div72@users.noreply.github.com>
@jamescowens
Copy link
Member

I tested it. No further regression. Putting it in hotfix for public testing.

@jamescowens jamescowens merged commit ad0f9c7 into gridcoin-community:development Sep 8, 2020
@cyrossignol cyrossignol deleted the fix-unicode-paths branch September 14, 2020 04:25
@jamescowens jamescowens changed the title Fix Windows API for default data directory with wide characters util: Fix Windows API for default data directory with wide characters Sep 19, 2020
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.

3 participants