summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp2
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!",