Merge pull request #7 from actboy168/patch-1

“=” should be “==”
This commit is contained in:
gulrak 2019-03-05 23:28:11 +01:00 committed by GitHub
commit 71d05aa49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());