mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-29 03:24:36 +00:00
Handle Win32 error 87 ERROR_INVALID_PARAMETER with fs::error::inval
This commit is contained in:
parent
86a34fbb45
commit
380f90b097
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user