From: Tobias Markus Date: Wed, 11 Feb 2015 15:13:14 +0000 (+0100) Subject: Add optional lpSecurityAttributes parameter to CreateDirectory call to make compilati... X-Git-Url: https://git.octo.it/?p=supertux.git;a=commitdiff_plain;h=8f2d3b4b577297359c0cb57acb7e0782a3c35ea5;hp=6c95a83b01fc8ae0c71db8cc9c323927969092d2 Add optional lpSecurityAttributes parameter to CreateDirectory call to make compilation on MSYS2 possible --- diff --git a/src/util/file_system.cpp b/src/util/file_system.cpp index 5b2ee00b5..6082f9d7c 100644 --- a/src/util/file_system.cpp +++ b/src/util/file_system.cpp @@ -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); }