hopefully fix windows compilation error pt 2
This commit is contained in:
parent
4a667ae270
commit
9ccc7d2533
@ -50,7 +50,7 @@ QString PlatformBackend::getCurrentUser() {
|
||||
DWORD username_len = UNLEN + 1;
|
||||
QString userName;
|
||||
if (GetUserName(username, &username_len)) {
|
||||
userName = QString::fromLocal8Bit(username, username_len);
|
||||
userName = QString::fromWCharArray(username, username_len);
|
||||
}
|
||||
delete[] username;
|
||||
return userName;
|
||||
|
Loading…
Reference in New Issue
Block a user