VirtualBox

Changeset 78787 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
May 27, 2019 5:08:54 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130876
Message:

DrvSCSI.cpp: Quick crash prevention for some other issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r76553 r78787  
    768768    PDRVSCSI pThis = RT_FROM_MEMBER(pInterface, DRVSCSI, IMediaEx);
    769769
    770     pThis->pDrvMediaEx->pfnNotifySuspend(pThis->pDrvMediaEx);
     770    /** @todo Don't crash if someone screws this up...  Recreated a VISO while it
     771     *        was mounted and asked the GUI to use it.  Got forced umount question.
     772     *        Said yes.  Ended up here with a NULL pointer. */
     773    PPDMIMEDIAEX pDrvMediaEx = pThis->pDrvMediaEx;
     774    if (pThis)
     775        pDrvMediaEx->pfnNotifySuspend(pDrvMediaEx);
    771776}
    772777
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette