Skip to content

Commit

Permalink
Add optional lpSecurityAttributes parameter to CreateDirectory call t…
Browse files Browse the repository at this point in the history
…o make compilation on MSYS2 possible
  • Loading branch information
tobbi committed Feb 11, 2015
1 parent 6c95a83 commit 8f2d3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/file_system.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8f2d3b4

Please sign in to comment.