reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit dbfcd5babb331239def3201f15fbaf248b26a0a3
parent 7df2401ebc03693adaba29709e60516a02846612
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat, 17 Jun 2017 21:33:42 -0400

filesystem: oops, fix mkdir on Windows

Diffstat:
Msrc/filesystem.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/filesystem.cpp b/src/filesystem.cpp @@ -197,7 +197,7 @@ bool FS::mkdir(const Path &path) const auto_string &joined = make_autostring(fullPath.join()); #ifdef _WIN32 - if(!CreateDirectory(joined.c_str(), nullptr) && GetLastError() != ERROR_PATH_NOT_FOUND) + if(!CreateDirectory(joined.c_str(), nullptr) && GetLastError() != ERROR_ALREADY_EXISTS) return false; #else if(::mkdir(joined.c_str(), 0777) && errno != EEXIST)