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

Commit 95d958b

Browse files
authored
fix checking user_name (#241)
After converting utf8 to wchar, the wrong variable was checked, probably by copy-paste.
1 parent d27b7ad commit 95d958b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/keytar_win.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ KEYTAR_OP_RESULT SetPassword(const std::string& service,
123123
}
124124

125125
LPWSTR user_name = utf8ToWideChar(account);
126-
if (target_name == NULL) {
126+
if (user_name == NULL) {
127127
return FAIL_ERROR;
128128
}
129129

0 commit comments

Comments
 (0)