Revert ERROR_INVALID_PARAMETERS

I don't want to ignore serious problems in light of easy workarounds.
This commit is contained in:
Nekotekina 2017-11-20 18:10:35 +03:00
parent d32a30bbeb
commit e77d5cf970

View File

@ -97,7 +97,7 @@ static fs::error to_error(DWORD e)
case ERROR_SHARING_VIOLATION: return fs::error::acces;
case ERROR_DIR_NOT_EMPTY: return fs::error::notempty;
case ERROR_NOT_READY: return fs::error::noent;
case ERROR_INVALID_PARAMETER: return fs::error::inval;
//case ERROR_INVALID_PARAMETER: return fs::error::inval;
default: fmt::throw_exception("Unknown Win32 error: %u.", e);
}
}