fix windows compilation error

This commit is contained in:
ArsenArsen 2018-02-25 21:21:50 +01:00
parent db651220f1
commit 10bd9a67c2
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2

View File

@ -46,7 +46,7 @@ bool PlatformBackend::filenameValid(QString name) {
}
QString PlatformBackend::getCurrentUser() {
LPWSTR username[UNLEN + 1];
WCHAR username[UNLEN + 1];
DWORD username_len = UNLEN + 1;
QString userName;
if (GetUserName(username, &username_len)) {