VirtualBox

Changeset 35721 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Jan 26, 2011 10:47:26 AM (14 years ago)
Author:
vboxsync
Message:

ExtPackManagerImpl.cpp: Fixed crash during installation because refreshExtPack returned a NULL pointer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r35638 r35721  
    24092409 * to the extension pack object may become invalid.
    24102410 *
    2411  * @returns S_OK and *ppExtPack on success, COM status code and error message
    2412  *          on failure.
     2411 * @returns S_OK and *a_ppExtPack on success, COM status code and error
     2412 *          message on failure.  Note that *a_ppExtPack can be NULL.
    24132413 *
    24142414 * @param   a_pszName           The extension to update..
     
    26072607            {
    26082608                hrc = refreshExtPack(pStrName->c_str(), true /*a_fUnusableIsError*/, &pExtPack);
    2609                 if (SUCCEEDED(hrc))
     2609                if (SUCCEEDED(hrc) && pExtPack)
    26102610                {
    26112611                    RTERRINFOSTATIC ErrInfo;
     
    26332633                    }
    26342634                }
     2635                else if (SUCCEEDED(hrc))
     2636                    hrc = setError(E_FAIL, tr("Installing extension pack '%s' failed under mysterious circumstances"),
     2637                                   pStrName->c_str());
    26352638            }
    26362639            else
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