diff options
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r-- | src/filesys.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp index a65515d03..1070b31e5 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -327,11 +327,12 @@ bool CreateAllDirs(std::string path) tocreate.push_back(basepath); pos = basepath.rfind(DIR_DELIM_C); if(pos == std::string::npos) - return false; + break; basepath = basepath.substr(0,pos); } for(int i=tocreate.size()-1;i>=0;i--) - CreateDir(tocreate[i]); + if(!CreateDir(tocreate[i])) + return false; return true; } |