forked from Mirrors/openclonk
[win32] Fix for c711d83290ca: Don't return failure when dir creation succeeded
parent
532e58c2ff
commit
a7812e3f3e
|
@ -565,8 +565,10 @@ bool CreatePath(const std::string &path)
|
|||
{
|
||||
assert(!path.empty());
|
||||
#ifdef _WIN32
|
||||
if (!CreateDirectory(path.c_str(), NULL))
|
||||
if (CreateDirectory(path.c_str(), NULL))
|
||||
{
|
||||
return true;
|
||||
} else {
|
||||
DWORD err = GetLastError();
|
||||
switch(err)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue