]> git.tdb.fi Git - libs/core.git/blobdiff - source/dir.cpp
Fix win32 compilation
[libs/core.git] / source / dir.cpp
index 9d23a1388015a89acf8e9ce36cf257c4fd8941a7..212200d04918a368b11a0f64050c3ee49cef938e 100644 (file)
@@ -46,7 +46,7 @@ void mkpath(const Path &path, int mode)
        {
                p/=*i;
 #ifdef WIN32
-               if(p.size()==1 && is_windows_drive(*i))
+               if(p.size()==1 && p.is_absolute())
                        continue;
 #endif
                struct stat st;
@@ -141,7 +141,7 @@ Path get_user_data_dir(const string &appname)
                return Path(datadir)/appname;
        return ".";
 #else
-       return get_home_dir()/("+"+appname);
+       return get_home_dir()/("."+appname);
 #endif
 }