VirtualBox

Changeset 13365 in vbox for trunk/src


Ignore:
Timestamp:
Oct 17, 2008 8:18:03 AM (16 years ago)
Author:
vboxsync
Message:

pcnet: don't crash if the link state changes while no driver is attached

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r12978 r13365  
    45094509        }
    45104510        Assert(!PDMCritSectIsOwner(&pThis->CritSect));
    4511         pThis->pDrv->pfnNotifyLinkChanged(pThis->pDrv, enmState);
     4511        if (pThis->pDrv)
     4512            pThis->pDrv->pfnNotifyLinkChanged(pThis->pDrv, enmState);
    45124513    }
    45134514    return VINF_SUCCESS;
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