VirtualBox

Changeset 58223 in vbox for trunk/src


Ignore:
Timestamp:
Oct 13, 2015 6:42:36 PM (9 years ago)
Author:
vboxsync
Message:

Main/cbinding: simplify passing NULL arrays for input parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/capiidl.xsl

    r56679 r58223  
    816816} SAFEARRAY;
    817817
    818 #define ComSafeArrayAsInParam(f) ((f)->c), ((f)->pv)
     818#define ComSafeArrayAsInParam(f) ((f) ? (f)->c : 0), ((f) ? (f)->pv : NULL)
    819819#define ComSafeArrayAsOutParam(f) (&((f)->c)), (&((f)->pv))
    820820#define ComSafeArrayAsOutTypeParam(f,t) (&((f)->c)), (t**)(&((f)->pv))
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