summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Application/Windows/WindowsApplication.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h
index 25267f7..e78942a 100644
--- a/Swiften/Application/Windows/WindowsApplication.h
+++ b/Swiften/Application/Windows/WindowsApplication.h
@@ -16,16 +16,16 @@ namespace Swift {
}
boost::filesystem::path getSettingsDir() const {
- boost::filesystem::path result(getHomeDir() / getName().getUTF8String());
+ char* homeDirRaw = getenv("APPDATA");
+ boost::filesystem::path result(boost::filesystem::path(getHomeDir()) / getName().getUTF8String());
boost::filesystem::create_directory(result);
return result;
}
boost::filesystem::path getHomeDir() const {
- char* homeDirRaw = getenv("APPDATA");
- if (!homeDirRaw) {
- homeDirRaw = getenv("USERPROFILE");
- }
+ //FIXME: This should be My Documents
+
+ char* homeDirRaw = getenv("USERPROFILE");
return boost::filesystem::path(homeDirRaw);
}