VirtualBox

Changeset 32682 in vbox


Ignore:
Timestamp:
Sep 22, 2010 6:59:46 AM (14 years ago)
Author:
vboxsync
Message:

Main: fixed incorrect parameters checking in MediumFormat implementation

File:
1 edited

Legend:

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

    r32531 r32682  
    198198STDMETHODIMP MediumFormat::COMGETTER(FileExtensions)(ComSafeArrayOut(BSTR, aFileExtensions))
    199199{
    200     if (ComSafeArrayOutIsNull(aFileExtensions))
    201         return E_POINTER;
     200    CheckComArgOutSafeArrayPointerValid(aFileExtensions);
    202201
    203202    AutoCaller autoCaller(this);
     
    242241                                              ComSafeArrayOut(BSTR, aDefaults))
    243242{
    244     CheckComArgSafeArrayNotNull(aNames);
    245     CheckComArgSafeArrayNotNull(aDescriptions);
    246     CheckComArgSafeArrayNotNull(aTypes);
    247     CheckComArgSafeArrayNotNull(aFlags);
    248     CheckComArgSafeArrayNotNull(aDefaults);
     243    CheckComArgOutSafeArrayPointerValid(aNames);
     244    CheckComArgOutSafeArrayPointerValid(aDescriptions);
     245    CheckComArgOutSafeArrayPointerValid(aTypes);
     246    CheckComArgOutSafeArrayPointerValid(aFlags);
     247    CheckComArgOutSafeArrayPointerValid(aDefaults);
    249248
    250249    AutoCaller autoCaller(this);
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