VirtualBox

Changeset 765 in vbox


Ignore:
Timestamp:
Feb 8, 2007 9:10:34 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18426
Message:

More protection during termination.

File:
1 edited

Legend:

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

    r702 r765  
    281281            g_cpvHashUsed, g_cpvHashCollisions, g_cpvHashInserts, g_cpvHashDone));
    282282#endif
     283    int rc = RTCritSectEnter(&pData->CritSect);
     284    AssertReleaseRC(rc);
    283285    slirp_term();
     286    g_pDrv = NULL;
     287    RTCritSectLeave(&pData->CritSect);
     288
    284289    RTCritSectDelete(&pData->CritSect);
    285     g_pDrv = NULL;
    286290}
    287291
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