[win32] Fix for c711d83290ca: Don't return failure when dir creation succeeded

Nicolas Hake 2009-07-11 20:03:12 +02:00
parent 532e58c2ff
commit a7812e3f3e
1 changed files with 3 additions and 1 deletions

View File

@ -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)
{