VirtualBox

Ignore:
Timestamp:
Mar 20, 2009 12:54:04 PM (16 years ago)
Author:
vboxsync
Message:

don't spam the release log if Guest::GetStatistic() fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r16125 r18113  
    292292    CheckComArgOutPointerValid(aStatVal);
    293293
    294     /* not available or not yet reported? */
    295     CheckComArgExpr(aStatistic, mCurrentGuestStat[aStatistic] != GUEST_STAT_INVALID);
     294    /* Not available or not yet reported? In that case, just return with a proper error
     295     * but don't use setError(). */
     296    if (mCurrentGuestStat[aStatistic] == GUEST_STAT_INVALID)
     297        return E_INVALIDARG;
    296298
    297299    *aStatVal = mCurrentGuestStat[aStatistic];
Note: See TracChangeset for help on using the changeset viewer.

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