From 96e8ae4ec702dbee046a109d20a941b30434f0fd Mon Sep 17 00:00:00 2001 From: Steven Schmid Date: Wed, 13 Jul 2016 02:26:04 +0200 Subject: [PATCH] Fix region detection on windows --- src/Hearthstone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hearthstone.cpp b/src/Hearthstone.cpp index e9fdb1a..ae68a12 100644 --- a/src/Hearthstone.cpp +++ b/src/Hearthstone.cpp @@ -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