Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix: Check user_name after wchar conversion (Windows) #241

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

hrantzsch
Copy link
Contributor

Identify the Bug

SetPassword converts the provided std::string account to a wchar-pointer by means of utf8ToWideChar. Subsequently, it should check if the conversion was successful.

Probably due to copy-paste, it checks target_name (again) instead.

Description of the Change

Check the freshly created user_name instead.

Alternate Designs

None

Possible Drawbacks

None

Verification Process

The code compiles.

Release Notes

N/A

After converting utf8 to wchar, the wrong variable was checked, probably
by copy-paste.
@hrantzsch hrantzsch changed the title fix checking user_name Fix: Check user_name after wchar conversion (Windows) Dec 11, 2019
Copy link
Contributor

@shiftkey shiftkey left a comment

Choose a reason for hiding this comment

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

@hrantzsch apologies, totally missed this!

Great spot - yes, we're not checking the right value here.

@shiftkey shiftkey merged commit 95d958b into atom:master Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants