VirtualBox

Changeset 14936 in vbox for trunk/src


Ignore:
Timestamp:
Dec 3, 2008 11:07:37 AM (16 years ago)
Author:
vboxsync
Message:

Use CheckComArgStrNotEmptyOrNull where appropriate.

File:
1 edited

Legend:

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

    r14934 r14936  
    907907                                      IMachine **aMachine)
    908908{
    909     /* null and empty strings are not allowed as path names */
    910     if (!aSettingsFile || !(*aSettingsFile))
    911         return E_INVALIDARG;
     909    CheckComArgStrNotEmptyOrNull(aSettingsFile);
    912910
    913911    if (!aMachine)
     
    11971195                                       IDVDImage2 **aDVDImage)
    11981196{
    1199     /* null and empty strings are not allowed as path names */
    1200     if (!aLocation || !(*aLocation))
    1201         return E_INVALIDARG;
     1197    CheckComArgStrNotEmptyOrNull(aLocation);
    12021198
    12031199    if (!aDVDImage)
     
    12711267                                          IFloppyImage2 **aFloppyImage)
    12721268{
    1273     /* null and empty strings are not allowed as path names */
    1274     if (!aLocation || !(*aLocation))
    1275         return E_INVALIDARG;
     1269    CheckComArgStrNotEmptyOrNull(aLocation);
    12761270
    12771271    if (!aFloppyImage)
     
    20031997
    20041998/**
    2005  *  Helper method to that starts a worker thread that:
     1999 *  Helper method that starts a worker thread that:
    20062000 *  - creates a pipe communication channel using SVCHlpClient;
    2007  *  - starts a SVC Helper process that will inherit this channel;
     2001 *  - starts an SVC Helper process that will inherit this channel;
    20082002 *  - executes the supplied function by passing it the created SVCHlpClient
    20092003 *    and opened instance to communicate to the Helper process and the given
     
    20162010 *  result code returned by the function.
    20172011 *
    2018  *  Before the user function is stared, the communication channel passed to in
    2019  *  the \a aClient argument, is fully set up, the function should start using
    2020  *  it's write() and read() methods directly.
     2012 *  Before the user function is started, the communication channel passed to
     2013 *  the \a aClient argument is fully set up, the function should start using
     2014 *  its write() and read() methods directly.
    20212015 *
    20222016 *  The \a aVrc parameter of the user function may be used to return an error
     
    20252019 *  message using this value will be reported to the caller. Note that the
    20262020 *  value of \a aVrc is inspected only if the user function itself returns
    2027  *  a success.
     2021 *  success.
    20282022 *
    20292023 *  If a failure happens anywhere before the user function would be normally
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