VirtualBox

Changeset 95339 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jun 21, 2022 10:33:35 PM (3 years ago)
Author:
vboxsync
Message:

GuestPropertySvc.h,Main: Changed GuestPropValidateName and GuestPropValidateValue to take size_t instead of uint32_t, eliminating the need for a bunch of (uint32_t) casts. Call setErrorBoth when either of the two fails in Main. [build fix] bugref:10185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r95338 r95339  
    60126012
    60136013    int vrc = GuestPropValidateName(aProperty.c_str(), aProperty.length() + 1 /* '\0' */);
    6014     AssertRCReturn(rc, setErrorBoth(E_INVALIDARG, vrc));
     6014    AssertRCReturn(vrc, setErrorBoth(E_INVALIDARG, vrc));
    60156015
    60166016    vrc = GuestPropValidateValue(aValue.c_str(), aValue.length() + 1  /* '\0' */);
    6017     AssertRCReturn(rc, setErrorBoth(E_INVALIDARG, vrc));
     6017    AssertRCReturn(vrc, setErrorBoth(E_INVALIDARG, vrc));
    60186018
    60196019    HRESULT rc = i_setGuestPropertyToVM(aProperty, aValue, aFlags, /* fDelete = */ false);
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