sysdeps/managarm: Add EINVAL handling to DRM_IOCTL_MODE_DIRTYFB
@@ -2739,11 +2739,15 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {
managarm::fs::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator());
resp.ParseFromArray(recv_resp.data(), recv_resp.length());
- __ensure(resp.error() == managarm::fs::Errors::SUCCESS);
+ if(resp.error() == managarm::fs::Errors::ILLEGAL_ARGUMENT) {
+ return EINVAL;
+ }else{
+ __ensure(resp.error() == managarm::fs::Errors::SUCCESS);
*result = resp.result();
return 0;
}
+ }
case DRM_IOCTL_MODE_CURSOR: {
auto param = reinterpret_cast<drm_mode_cursor *>(arg);
