diff options
-rw-r--r-- | singleapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp index ef7998a..31e3f0f 100644 --- a/singleapplication.cpp +++ b/singleapplication.cpp @@ -99,7 +99,7 @@ void SingleApplicationPrivate::genBlockServerName( int timeout ) wchar_t username [ UNLEN + 1 ]; // Specifies size of the buffer on input DWORD usernameLength = UNLEN + 1; - if( GetUserName( username, &usernameLength ) ) { + if( GetUserNameW( username, &usernameLength ) ) { appData.addData( QString::fromWCharArray(username).toUtf8() ); } else { appData.addData( QStandardPaths::standardLocations( QStandardPaths::HomeLocation ).join("").toUtf8() ); |