summaryrefslogtreecommitdiff
path: root/plugingui/pluginconfig.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-08-05 20:36:57 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-08-05 20:36:57 +0200
commit85a28457cee04bdbf265ab4553da75b599b3dbff (patch)
tree49e2959ad0c70171f3ff676e1b07d9e0961baa13 /plugingui/pluginconfig.cc
parentf6d7d74ea3f9942f724565f060a7dbce59d56e3f (diff)
Fixing windows.
Diffstat (limited to 'plugingui/pluginconfig.cc')
-rw-r--r--plugingui/pluginconfig.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc
index 7c96147..81bff0e 100644
--- a/plugingui/pluginconfig.cc
+++ b/plugingui/pluginconfig.cc
@@ -72,9 +72,11 @@ FILE* openFilePtr(std::string mode) {
NULL,
0,
szPath))); {
- DEBUG(config, "WINDOWS APP DATA PATH:%s\n", szPath);
- PathAppend(szPath, TEXT(CONFIGDIRNAME));
- HANDLE hFile = CreateFile(szPath, GENERIC_READ | GENERIC_WRITE, 0, NULL);
+ DEBUG(config, "WINDOWS APP DATA PATH:%s\n", szPath);
+ PathAppend(szPath, TEXT(CONFIGDIRNAME));
+ if(!Directory::exists(configpath)) {
+ CreateDirectory(szPath, NULL);
+ }
}
#else
std::string configpath = strdup(getenv("HOME"));