From 279761bbf59a5129793896dcc8fc2bc04955b1a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 22 Aug 2009 11:20:42 +0200
Subject: Use APPDATA dir on Windows for storing settings.


diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h
index d31691c..365157b 100644
--- a/Swiften/Application/Windows/WindowsApplication.h
+++ b/Swiften/Application/Windows/WindowsApplication.h
@@ -15,8 +15,8 @@ namespace Swift {
 			}
 
 			boost::filesystem::path getSettingsDir() const {
-				char* homeDirRaw = getenv("APPDATA");
-				boost::filesystem::path result(boost::filesystem::path(getHomeDir()) / getName().getUTF8String());
+				char* appDirRaw = getenv("APPDATA");
+				boost::filesystem::path result(boost::filesystem::path(appDirRaw) / getName().getUTF8String());
 				boost::filesystem::create_directory(result);
 				return result;
 			}
-- 
cgit v0.10.2-6-g49f6