VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 3:41:14 PM (6 years ago)
Author:
vboxsync
Message:

Main/HostDnsServiceDarwin: Fixed shutting down procedure by making sure fStop is initialized. Also added a couple of checks / assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp

    r76553 r77666  
    3434struct HostDnsServiceDarwin::Data
    3535{
     36    Data()
     37        : m_fStop(false) { }
     38
    3639    SCDynamicStoreRef m_store;
    3740    CFRunLoopSourceRef m_DnsWatcher;
     
    252255{
    253256    HostDnsServiceDarwin::Data *pThis = static_cast<HostDnsServiceDarwin::Data *>(info);
     257    AssertPtrReturnVoid(pThis);
    254258    pThis->m_fStop = true;
    255259}
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