Add optional lpSecurityAttributes parameter to CreateDirectory call to make compilati...
authorTobias Markus <tobbi.bugs@googlemail.com>
Wed, 11 Feb 2015 15:13:14 +0000 (16:13 +0100)
committerTobias Markus <tobbi.bugs@googlemail.com>
Wed, 11 Feb 2015 15:13:14 +0000 (16:13 +0100)
src/util/file_system.cpp

index 5b2ee00..6082f9d 100644 (file)
@@ -64,7 +64,7 @@ bool is_directory(const std::string& path)
 void mkdir(const std::string& directory)
 {
 #ifdef _WIN32
-  if (!CreateDirectory(directory.c_str()))
+  if (!CreateDirectory(directory.c_str(), NULL))
   {
     throw std::runtime_error("failed to create directory: "  + directory);
   }