mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-22 21:14:25 +08:00
refs #121, fix for mingw compile issue
This commit is contained in:
parent
a697b05dd7
commit
9c6ff202e7
@ -4650,7 +4650,7 @@ GHC_INLINE bool remove(const path& p, std::error_code& ec) noexcept
|
||||
ec = detail::make_system_error(error);
|
||||
}
|
||||
else if(attr & FILE_ATTRIBUTE_READONLY) {
|
||||
auto new_attr = attr & ~FILE_ATTRIBUTE_READONLY;
|
||||
auto new_attr = attr & ~static_cast<DWORD>(FILE_ATTRIBUTE_READONLY);
|
||||
if(!SetFileAttributesW(cstr, new_attr)) {
|
||||
auto error = ::GetLastError();
|
||||
ec = detail::make_system_error(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user