diff --git a/Utilities/File.cpp b/Utilities/File.cpp index afc102e3ca..0511e9159d 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -97,6 +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; default: fmt::throw_exception("Unknown Win32 error: %u.", e); } }