From c74f0a0eb0c1ce9482f6960e1a30618cd1a761d0 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 20 Apr 2021 19:24:34 +0300 Subject: [PATCH] Update File_WIN32U.cpp --- vendor/POCO/Foundation/src/File_WIN32U.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/POCO/Foundation/src/File_WIN32U.cpp b/vendor/POCO/Foundation/src/File_WIN32U.cpp index 75b5da85..879e9498 100644 --- a/vendor/POCO/Foundation/src/File_WIN32U.cpp +++ b/vendor/POCO/Foundation/src/File_WIN32U.cpp @@ -309,7 +309,7 @@ void FileImpl::renameToImpl(const std::string& path, int options) std::wstring upath; convertPath(path, upath); if (options & OPT_FAIL_ON_OVERWRITE_IMPL) { - if (MoveFileExW(_upath.c_str(), upath.c_str(), NULL) == 0) + if (MoveFileExW(_upath.c_str(), upath.c_str(), 0) == 0) handleLastErrorImpl(_path); } else { if (MoveFileExW(_upath.c_str(), upath.c_str(), MOVEFILE_REPLACE_EXISTING) == 0)