From ffcf1df72849711b23ff1d184df69f01826edba9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Jun 2012 02:24:53 +0300 Subject: Fix compilation warnings in windows builds. --- src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client.cpp') 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!", -- cgit v1.2.3-60-g2f50