VirtualBox

Changeset 46807 in vbox


Ignore:
Timestamp:
Jun 26, 2013 2:34:19 PM (11 years ago)
Author:
vboxsync
Message:

Main/ConsoleImpl: consider NULL here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r46788 r46807  
    12331233        uint32_t u32GuestFlags = VMMDEV_SETCREDENTIALS_GUESTLOGON;
    12341234
    1235         int rc = m_pVMMDev->getVMMDevPort()->pfnSetCredentials(m_pVMMDev->getVMMDevPort(),
    1236                      pszUser, pszPassword, pszDomain, u32GuestFlags);
    1237         AssertRC(rc);
     1235        PPDMIVMMDEVPORT pDevPort = m_pVMMDev->getVMMDevPort();
     1236        if (pDevPort)
     1237        {
     1238            int rc = pDevPort->pfnSetCredentials(m_pVMMDev->getVMMDevPort(),
     1239                                                 pszUser, pszPassword, pszDomain, u32GuestFlags);
     1240            AssertRC(rc);
     1241        }
    12381242    }
    12391243
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