diff options
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/pluginconfig.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/pluginconfig.cc b/plugingui/pluginconfig.cc index 38cf616..1ce1e66 100644 --- a/plugingui/pluginconfig.cc +++ b/plugingui/pluginconfig.cc @@ -82,7 +82,11 @@ FILE* openFilePtr(std::string mode) { configpath += CONFIGDIRNAME; if(!Directory::exists(configpath)) { DEBUG(pluginconfig, "No configuration exists, creating directory '%s'\n", configpath.c_str()); +#ifdef WIN32 + if( (mkdir(configpath.c_str())) < 0) { +#else if( (mkdir(configpath.c_str(), 0755)) < 0) { +#endif DEBUG(pluginconfig, "Could not create config directory\n"); } return NULL; |