diff --git a/src/libtomahawk/utils/TomahawkUtils.cpp b/src/libtomahawk/utils/TomahawkUtils.cpp index 53b0c75da..795b2e642 100644 --- a/src/libtomahawk/utils/TomahawkUtils.cpp +++ b/src/libtomahawk/utils/TomahawkUtils.cpp @@ -173,12 +173,12 @@ appDataDir() if ( ( QSysInfo::WindowsVersion & QSysInfo::WV_DOS_based ) == 0 ) { // Use this for non-DOS-based Windowses - char acPath[MAX_PATH]; - HRESULT h = SHGetFolderPathA( NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, + wchar_t acPath[MAX_PATH]; + HRESULT h = SHGetFolderPathW( NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, acPath ); if ( h == S_OK ) { - path = QString::fromLocal8Bit( acPath ); + path = QString::fromUtf16( (ushort*)acPath ); } } #elif defined(Q_OS_MAC)