VirtualBox

Changeset 54188 in vbox for trunk


Ignore:
Timestamp:
Feb 13, 2015 2:28:19 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98244
Message:

RTTimerChangeInterval now returns VERR_INVALID_STATE if not a periodic timer.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/timer.h

    r42333 r54188  
    194194 * @retval  VERR_INVALID_HANDLE if pTimer isn't valid.
    195195 * @retval  VERR_NOT_SUPPORTED if not supported.
     196 * @retval  VERR_INVALID_STATE if not a periodic timer.
    196197 *
    197198 * @param   pTimer              The timer to activate.
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r53019 r54188  
    13531353    AssertReturn(pTimer->u32Magic == RTTIMER_MAGIC, VERR_INVALID_HANDLE);
    13541354    AssertReturn(u64NanoInterval, VERR_INVALID_PARAMETER);
     1355    AssertReturn(u64NanoInterval < UINT64_MAX / 8, VERR_INVALID_PARAMETER);
     1356    AssertReturn(pTimer->u64NanoInterval, VERR_INVALID_STATE);
    13551357    RTTIMERLNX_LOG(("change %p %llu\n", pTimer, u64NanoInterval));
    13561358
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette