Register Win32 error 32

This commit is contained in:
Nekotekina 2017-08-27 16:09:34 +03:00
parent f59a448f3f
commit 2570911283

View File

@ -93,6 +93,7 @@ static fs::error to_error(DWORD e)
case ERROR_NEGATIVE_SEEK: return fs::error::inval;
case ERROR_DIRECTORY: return fs::error::inval;
case ERROR_INVALID_NAME: return fs::error::inval;
case ERROR_SHARING_VIOLATION: return fs::error::acces;
default: fmt::throw_exception("Unknown Win32 error: %u.", e);
}
}