mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
Fix typo.
This commit is contained in:
@@ -101,7 +101,7 @@ std::optional<std::u16string> DeviceInfo::GetFullName() const {
|
||||
char *name = strtok(pwd->pw_gecos, ",");
|
||||
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
|
||||
return convert.from_bytes(name == nullptr ? name : pwd->pw_gecos);
|
||||
return convert.from_bytes(name != nullptr ? name : pwd->pw_gecos);
|
||||
}
|
||||
|
||||
std::optional<std::string> DeviceInfo::GetProfileUserName() const {
|
||||
|
||||
Reference in New Issue
Block a user