mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-24 07:54:25 +08:00
“=” should be “==”
This commit is contained in:
parent
9c4b8204e4
commit
ade387c05f
@ -3642,7 +3642,7 @@ inline bool remove(const path& p, std::error_code& ec) noexcept
|
|||||||
DWORD attr = GetFileAttributesW(np.c_str());
|
DWORD attr = GetFileAttributesW(np.c_str());
|
||||||
if (attr == INVALID_FILE_ATTRIBUTES) {
|
if (attr == INVALID_FILE_ATTRIBUTES) {
|
||||||
auto error = ::GetLastError();
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
ec = std::error_code(error, std::system_category());
|
ec = std::error_code(error, std::system_category());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user