Changeset 64400 in vbox for trunk/src/VBox
- Timestamp:
- Oct 24, 2016 3:59:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r64185 r64400 696 696 rc = VBoxQueryConfHGSMI(&vbox->submit_info, 697 697 VBOX_VBVA_CONF32_CURSOR_CAPABILITIES, &caps); 698 ret = -RTErrConvertToErrno(rc);698 ret = rc == VINF_SUCCESS ? 0 : rc == VERR_NO_MEMORY ? -ENOMEM : -EINVAL; 699 699 if (ret) 700 700 return ret; … … 740 740 width, height, dst, 741 741 data_size); 742 ret = -RTErrConvertToErrno(rc); 742 ret = rc == VINF_SUCCESS ? 0 743 : rc == VERR_NO_MEMORY ? -ENOMEM 744 : rc == VERR_NOT_SUPPORTED ? -EBUSY 745 : -EINVAL; 743 746 } 744 747 else … … 779 782 /* Work around a bug after save and restore in 5.0.20 and earlier. */ 780 783 if (RT_FAILURE(rc) || (host_x == 0 && host_y == 0)) 781 return -RTErrConvertToErrno(rc); 784 return rc == VINF_SUCCESS ? 0 785 : rc == VERR_NO_MEMORY ? -ENOMEM 786 : -EINVAL; 782 787 if (x + crtc->x < host_x) 783 788 hot_x = min(host_x - x - crtc->x, vbox->cursor_width); … … 792 797 vbox->cursor_data, 793 798 vbox->cursor_data_size); 794 return -RTErrConvertToErrno(rc); 795 } 799 return rc == VINF_SUCCESS ? 0 800 : rc == VERR_NO_MEMORY ? -ENOMEM 801 : rc == VERR_NOT_SUPPORTED ? -EBUSY 802 : -EINVAL; 803 }
Note:
See TracChangeset
for help on using the changeset viewer.