diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-22 02:24:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-22 12:39:21 +0300 |
commit | ffcf1df72849711b23ff1d184df69f01826edba9 (patch) | |
tree | 51028276f4fc3d928f107b0ff4a68ed1789e4eb8 /src/client.cpp | |
parent | 319d525f993b0b95205df1cd431985ce575c4049 (diff) | |
download | ManaVerse-ffcf1df72849711b23ff1d184df69f01826edba9.tar.gz ManaVerse-ffcf1df72849711b23ff1d184df69f01826edba9.tar.bz2 ManaVerse-ffcf1df72849711b23ff1d184df69f01826edba9.tar.xz ManaVerse-ffcf1df72849711b23ff1d184df69f01826edba9.zip |
Fix compilation warnings in windows builds.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index bdb43d0b9..3efd9c593 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1872,7 +1872,7 @@ void Client::initUpdatesDir() loc = newDir.find("/", loc); } - if (!CreateDirectory(newDir.c_str(), 0) && + if (!CreateDirectory(newDir.c_str(), nullptr) && GetLastError() != ERROR_ALREADY_EXISTS) { logger->log("Error: %s can't be made, but doesn't exist!", |