Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Fix region detection on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stevschmid committed Jul 13, 2016
1 parent 016d427 commit 96e8ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hearthstone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ QString Hearthstone::DetectRegion() const {
QString path = homeLocation + "/Library/Application Support/Battle.net/";
#elif defined Q_OS_WIN
wchar_t buffer[ MAX_PATH ];
SHGetSpecialFolderPathW( NULL, buffer, CSIDL_LOCAL_APPDATA, FALSE );
SHGetSpecialFolderPathW( NULL, buffer, CSIDL_APPDATA, FALSE );
QString localAppData = QString::fromWCharArray( buffer );
QString path = localAppData + "/Battle.net/";
#endif
Expand Down

0 comments on commit 96e8ae4

Please sign in to comment.