From ade387c05ff2424a929f15c398f1fa5df2890c36 Mon Sep 17 00:00:00 2001 From: actboy168 Date: Tue, 5 Mar 2019 16:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=3D=E2=80=9D=20should=20be=20=E2=80=9C?= =?UTF-8?q?=3D=3D=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filesystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem.h b/filesystem.h index 29650be..f73a4c4 100644 --- a/filesystem.h +++ b/filesystem.h @@ -3642,7 +3642,7 @@ inline bool remove(const path& p, std::error_code& ec) noexcept DWORD attr = GetFileAttributesW(np.c_str()); if (attr == INVALID_FILE_ATTRIBUTES) { auto error = ::GetLastError(); - if (error = ERROR_FILE_NOT_FOUND || error == ERROR_PATH_NOT_FOUND) { + if (error == ERROR_FILE_NOT_FOUND || error == ERROR_PATH_NOT_FOUND) { return false; } ec = std::error_code(error, std::system_category());