VirtualBox

Changeset 97954 in vbox for trunk/include


Ignore:
Timestamp:
Jan 3, 2023 3:34:28 PM (2 years ago)
Author:
vboxsync
Message:

VMMDevCoreTypes.h: Made HGCMFunctionParameter.GetUInt32/64 return VERR_WRONG_PARAMETER_TYPE instead of VERR_INVALID_PARAMETER (a tiny bit risky).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VMMDevCoreTypes.h

    r97953 r97954  
    520520    {
    521521        AssertMsgReturnStmt(type == VMMDevHGCMParmType_32bit, ("type=-%d\n", type),
    522                             *pu32 = UINT32_MAX /* shut up gcc */, VERR_INVALID_PARAMETER)
     522                            *pu32 = UINT32_MAX /* shut up gcc */, VERR_WRONG_PARAMETER_TYPE)
    523523        *pu32 = u.value32;
    524524        return VINF_SUCCESS;
     
    534534    {
    535535        AssertMsgReturnStmt(type == VMMDevHGCMParmType_64bit, ("type=%d\n", type),
    536                             *pu64 = UINT32_MAX /* shut up gcc */, VERR_INVALID_PARAMETER);
     536                            *pu64 = UINT32_MAX /* shut up gcc */, VERR_WRONG_PARAMETER_TYPE);
    537537        *pu64 = u.value64;
    538538        return VINF_SUCCESS;
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